Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Observe ¶
func Observe(ctx context.Context, log logrus.FieldLogger, client gcs.ConditionalClient, configPath gcs.Path, ticker <-chan time.Time) (<-chan *Config, error)
Observe reads the config at configPath and return a ConfigSnapshot initially and, if a ticker is supplied, when the config changes Returns an error instead if there is no file at configPath
Types ¶
Click to show internal directories.
Click to hide internal directories.