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,30 +5,30 @@ import "reflect"
// JSCKSourceSleeper is the sleeper source's configuration key.
const JSCKSourceSleeper string = "sleeper"
// JobSearchConfigSourceSleeper configures the sleeper, a test source that
// JSCSourceSleeper configures the sleeper, a test source that
// simulates work by sleeping. With BlockShutdown its work ignores
// cancellation, to test shutdown waiting on a non-cooperative task.
type JobSearchConfigSourceSleeper struct {
type JSCSourceSleeper struct {
JobSearchConfigSource
BlockShutdown bool `cfg:"block_shutdown"`
}
// ---------- Section methods (see Section) ----------
func (c JobSearchConfigSourceSleeper) Map() map[string]any { return mapOf(c) }
func (c JSCSourceSleeper) Map() map[string]any { return mapOf(c) }
func (c JobSearchConfigSourceSleeper) Flatten() map[string]any {
func (c JSCSourceSleeper) Flatten() map[string]any {
return flattenOf(JSCKSourceSleeper, c)
}
func (c JobSearchConfigSourceSleeper) TypeOf(key string) (reflect.Kind, error) {
func (c JSCSourceSleeper) TypeOf(key string) (reflect.Kind, error) {
return typeOf(c, key)
}
func (c JobSearchConfigSourceSleeper) ValueOf(key string) (any, error) {
func (c JSCSourceSleeper) ValueOf(key string) (any, error) {
return valueOf(c, key)
}
func (c *JobSearchConfigSourceSleeper) SetValue(key string, value any) error {
func (c *JSCSourceSleeper) SetValue(key string, value any) error {
return setValue(c, key, value)
}