Documentation ¶
Index ¶
- func Final()
- func MustGet(configptr interface{}) interface{}
- func MustRegisterFile(configptr interface{}, file string, conf *RegisterConfiguration)
- func WaitSynced(configptr interface{}) error
- func WaitSyncedAll() (err error)
- type ConfigMeta
- type Decoder
- type Option
- type PostDecoder
- type PostSwapper
- type PreDecoder
- type RegisterConfiguration
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustRegisterFile ¶
func MustRegisterFile(configptr interface{}, file string, conf *RegisterConfiguration)
func WaitSynced ¶
func WaitSynced(configptr interface{}) error
func WaitSyncedAll ¶
func WaitSyncedAll() (err error)
Types ¶
type ConfigMeta ¶
type ConfigMeta struct {
// contains filtered or unexported fields
}
func NewConfigMeta ¶
func NewConfigMeta(c interface{}, source Source, opts ...Option) *ConfigMeta
func (*ConfigMeta) Get ¶
func (cm *ConfigMeta) Get() interface{}
func (*ConfigMeta) Run ¶
func (cm *ConfigMeta) Run()
func (*ConfigMeta) Stop ¶
func (cm *ConfigMeta) Stop()
func (*ConfigMeta) WaitSynced ¶
func (cm *ConfigMeta) WaitSynced() error
func (*ConfigMeta) WaitSynced2 ¶
func (cm *ConfigMeta) WaitSynced2(ctx context.Context) error
type Option ¶
type Option func(cm *ConfigMeta)
func WithDecoder ¶
func WithLogger ¶
func WithLogger(logger logger.LeveledLogger) Option
func WithValidator ¶
type PostDecoder ¶
type PostDecoder interface {
PostDecode(oldptr interface{}) error
}
type PostSwapper ¶
type PostSwapper interface {
PostSwap(oldptr interface{})
}
type PreDecoder ¶
type PreDecoder interface {
PreDecode(oldptr interface{}) error
}
type RegisterConfiguration ¶
type RegisterConfiguration struct {
// contains filtered or unexported fields
}
func WithDefaultConfiguration ¶
func WithDefaultConfiguration() *RegisterConfiguration
func (*RegisterConfiguration) WithDecoder ¶
func (c *RegisterConfiguration) WithDecoder(d Decoder) *RegisterConfiguration
func (*RegisterConfiguration) WithLogger ¶
func (c *RegisterConfiguration) WithLogger(l logger.LeveledLogger) *RegisterConfiguration
func (*RegisterConfiguration) WithValidator ¶
func (c *RegisterConfiguration) WithValidator(v *validator.Validate) *RegisterConfiguration
Click to show internal directories.
Click to hide internal directories.