Shortened configuration struct names from JobSearchConfig to JSC since they are distinguished by being in the config package anyway
This commit is contained in:
1 parent
5ec4b65b91
commit
be4770cbab
11 files changed
+71
-67
No files matched your search
@@ -5,29 +5,29 @@ import "reflect"
|
||||
// JSCKSourceFindATender is the Find a Tender source's configuration key.
|
||||
const JSCKSourceFindATender string = "find_a_tender"
|
||||
|
||||
// JobSearchConfigSourceFindATender configures fetching from the Find a Tender
|
||||
// JSCSourceFindATender configures fetching from the Find a Tender
|
||||
// OCDS API at APIRoot.
|
||||
type JobSearchConfigSourceFindATender struct {
|
||||
type JSCSourceFindATender struct {
|
||||
JobSearchConfigSource
|
||||
APIRoot string `cfg:"api_root" default:"https://www.find-tender.service.gov.uk/api/1.0"`
|
||||
}
|
||||
|
||||
// ---------- Section methods (see Section) ----------
|
||||
|
||||
func (c JobSearchConfigSourceFindATender) Map() map[string]any { return mapOf(c) }
|
||||
func (c JSCSourceFindATender) Map() map[string]any { return mapOf(c) }
|
||||
|
||||
func (c JobSearchConfigSourceFindATender) Flatten() map[string]any {
|
||||
func (c JSCSourceFindATender) Flatten() map[string]any {
|
||||
return flattenOf(JSCKSourceFindATender, c)
|
||||
}
|
||||
|
||||
func (c JobSearchConfigSourceFindATender) TypeOf(key string) (reflect.Kind, error) {
|
||||
func (c JSCSourceFindATender) TypeOf(key string) (reflect.Kind, error) {
|
||||
return typeOf(c, key)
|
||||
}
|
||||
|
||||
func (c JobSearchConfigSourceFindATender) ValueOf(key string) (any, error) {
|
||||
func (c JSCSourceFindATender) ValueOf(key string) (any, error) {
|
||||
return valueOf(c, key)
|
||||
}
|
||||
|
||||
func (c *JobSearchConfigSourceFindATender) SetValue(key string, value any) error {
|
||||
func (c *JSCSourceFindATender) SetValue(key string, value any) error {
|
||||
return setValue(c, key, value)
|
||||
}
|
||||
Reference in new issue
Block a user