Documentation ¶
Index ¶
- type EnvSource
- type FlagsSource
- type JSONSource
- func (s *JSONSource) Close(ctx context.Context)
- func (s *JSONSource) ID() string
- func (s *JSONSource) Load(ctx context.Context, services []string) error
- func (s *JSONSource) Priority() int
- func (s *JSONSource) ServiceConfig(serviceName string) (conf.Config, error)
- func (s *JSONSource) SetJSONUnmarshaler(u JSONUnmarshaler)
- func (s *JSONSource) SetReader(r SrcReader)
- type JSONUnmarshaler
- type MapSource
- type ServiceConfigError
- type SrcReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvSource ¶
type EnvSource struct {
// contains filtered or unexported fields
}
EnvSource represents.
type FlagsSource ¶
type FlagsSource struct {
// contains filtered or unexported fields
}
FlagsSource represents.
func NewFlagsSource ¶
func NewFlagsSource(priority int, prefix string) *FlagsSource
NewFlagsSource initializes FlagsSource using standard `os.Args`.
func (*FlagsSource) Load ¶
func (s *FlagsSource) Load(ctx context.Context, services []string) (err error)
Load loads configuration data from flags passed at args.
func (*FlagsSource) ServiceConfig ¶
func (s *FlagsSource) ServiceConfig(serviceName string) (conf.Config, error)
ServiceConfig.
type JSONSource ¶
type JSONSource struct {
// contains filtered or unexported fields
}
JSONFileStorage represents.
func (*JSONSource) Load ¶
func (s *JSONSource) Load(ctx context.Context, services []string) error
Load
func (*JSONSource) ServiceConfig ¶
func (s *JSONSource) ServiceConfig(serviceName string) (conf.Config, error)
ServiceConfig
func (*JSONSource) SetJSONUnmarshaler ¶
func (s *JSONSource) SetJSONUnmarshaler(u JSONUnmarshaler)
SetJSONUnmarshaler
type MapSource ¶
type MapSource struct {
// contains filtered or unexported fields
}
MapSource represents.
func NewMapSource ¶
NewMapSource.
type ServiceConfigError ¶
ServiceConfigError represents.
Click to show internal directories.
Click to hide internal directories.