Documentation
¶
Index ¶
- type Accessor
- type Config
- type Explainer
- type Getter
- type MultiAccessor
- func (ma *MultiAccessor) Accessor(key string) *Accessor
- func (ma *MultiAccessor) AddAccessor(key string, a *Accessor)
- func (ma *MultiAccessor) Config(key string) Config
- func (ma *MultiAccessor) Configs() map[string]Config
- func (ma *MultiAccessor) GetAccessor(key string) (*Accessor, bool)
- func (ma *MultiAccessor) GetConfig(key string) (Config, bool)
- func (ma *MultiAccessor) Reload() error
- func (ma *MultiAccessor) ReloadEach(dur time.Duration, stopCh <-chan struct{})
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessor ¶
type Accessor struct {
// contains filtered or unexported fields
}
zero value is not ready to use, call NewAccessor to create
func NewAccessor ¶
for accessor itself, only getter is required for most of use case, explainer is expected
type Explainer ¶
func NewCommonJSONExplainer ¶
func NewCommonJSONExplainer(v interface{}) Explainer
type MultiAccessor ¶
type MultiAccessor struct {
// contains filtered or unexported fields
}
zero value is ready to use
func (*MultiAccessor) Accessor ¶
func (ma *MultiAccessor) Accessor(key string) *Accessor
func (*MultiAccessor) AddAccessor ¶
func (ma *MultiAccessor) AddAccessor(key string, a *Accessor)
func (*MultiAccessor) Config ¶
func (ma *MultiAccessor) Config(key string) Config
func (*MultiAccessor) Configs ¶
func (ma *MultiAccessor) Configs() map[string]Config
func (*MultiAccessor) GetAccessor ¶
func (ma *MultiAccessor) GetAccessor(key string) (*Accessor, bool)
func (*MultiAccessor) Reload ¶
func (ma *MultiAccessor) Reload() error
func (*MultiAccessor) ReloadEach ¶
func (ma *MultiAccessor) ReloadEach(dur time.Duration, stopCh <-chan struct{})
Click to show internal directories.
Click to hide internal directories.