Documentation ¶
Index ¶
- func RegistrySource(name string, f NewSource)
- type Config
- func (c *Config) Bool(ctx context.Context, key string) bool
- func (c *Config) Has(ctx context.Context, key string) (bool, error)
- func (c *Config) Scan(ctx context.Context, key string, value interface{}) error
- func (c *Config) String(ctx context.Context, key string) string
- func (c *Config) Watch(ctx context.Context, key string, callback func(event source.Event)) error
- type Env
- type NewSource
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegistrySource ¶
Types ¶
type Config ¶
type Config struct { AppName string Version string Env Env Debug bool // contains filtered or unexported fields }
type Option ¶
type Option func(*Options)
func WithConfigFile ¶
func WithSerialization ¶
func WithSerialization(serialization file.Serialization) Option
func WithSource ¶
Click to show internal directories.
Click to hide internal directories.