Shortened configuration struct names from JobSearchConfig to JSC since they are distinguished by being in the config package anyway

This commit is contained in:
bwilliams committed 2026-10-13 16:16:34 +01:00
1 parent 5ec4b65b91
commit be4770cbab
11 files changed
+71 -67

No files matched your search

+7 -7
View File
@@ -5,29 +5,29 @@ import "reflect"
// JSCKSourceFTSMock is the Find a Tender mock source's configuration key.
const JSCKSourceFTSMock string = "fts_mock"
// JobSearchConfigSourceFTSMock configures fetching from a Find a Tender mock
// JSCSourceFTSMock configures fetching from a Find a Tender mock
// server (cmd/mock-fts) at APIRoot.
type JobSearchConfigSourceFTSMock struct {
type JSCSourceFTSMock struct {
JobSearchConfigSource
APIRoot string `cfg:"api_root"`
}
// ---------- Section methods (see Section) ----------
func (c JobSearchConfigSourceFTSMock) Map() map[string]any { return mapOf(c) }
func (c JSCSourceFTSMock) Map() map[string]any { return mapOf(c) }
func (c JobSearchConfigSourceFTSMock) Flatten() map[string]any {
func (c JSCSourceFTSMock) Flatten() map[string]any {
return flattenOf(JSCKSourceFTSMock, c)
}
func (c JobSearchConfigSourceFTSMock) TypeOf(key string) (reflect.Kind, error) {
func (c JSCSourceFTSMock) TypeOf(key string) (reflect.Kind, error) {
return typeOf(c, key)
}
func (c JobSearchConfigSourceFTSMock) ValueOf(key string) (any, error) {
func (c JSCSourceFTSMock) ValueOf(key string) (any, error) {
return valueOf(c, key)
}
func (c *JobSearchConfigSourceFTSMock) SetValue(key string, value any) error {
func (c *JSCSourceFTSMock) SetValue(key string, value any) error {
return setValue(c, key, value)
}