package config import "reflect" // JSCKSourceFindATender is the Find a Tender source's configuration key. const JSCKSourceFindATender string = "find_a_tender" // JSCSourceFindATender configures fetching from the Find a Tender // OCDS API at APIRoot. type JSCSourceFindATender struct { JSCSourcesSource APIRoot string `cfg:"api_root" default:"https://www.find-tender.service.gov.uk/api/1.0"` } // ---------- Section methods (see Section) ---------- // Map implements Section. func (c JSCSourceFindATender) Map() map[string]any { return mapOf(c) } // Flatten implements Section. func (c JSCSourceFindATender) Flatten() map[string]any { return flattenOf(JSCKSourceFindATender, c) } // TypeOf implements Section. func (c JSCSourceFindATender) TypeOf(key string) (reflect.Kind, error) { return typeOf(c, key) } // ValueOf implements Section. func (c JSCSourceFindATender) ValueOf(key string) (any, error) { return valueOf(c, key) } // SetValue implements Section. func (c *JSCSourceFindATender) SetValue(key string, value any) error { return setValue(c, key, value) }