Documentation ¶
Index ¶
- type Module
- type ModuleBase
- func (module *ModuleBase) Connect(refreshC chan Module)
- func (module *ModuleBase) Exists(key string) bool
- func (module *ModuleBase) Get(key string) (value interface{})
- func (module *ModuleBase) GetKeys() (result []string)
- func (module *ModuleBase) GetOptions() *Options
- func (module *ModuleBase) NotifyDirtyness(externalSource Module)
- type Options
- type RefreshPolicy
- type SentinelOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleBase ¶
type ModuleBase struct { RefreshC chan Module Flatmap map[string]interface{} RWTex sync.RWMutex Options *Options }
func (*ModuleBase) Connect ¶
func (module *ModuleBase) Connect(refreshC chan Module)
Used by Configuration
func (*ModuleBase) Exists ¶
func (module *ModuleBase) Exists(key string) bool
Checks if a key exists
func (*ModuleBase) Get ¶
func (module *ModuleBase) Get(key string) (value interface{})
Get Config Values
func (*ModuleBase) GetKeys ¶
func (module *ModuleBase) GetKeys() (result []string)
func (*ModuleBase) GetOptions ¶
func (module *ModuleBase) GetOptions() *Options
func (*ModuleBase) NotifyDirtyness ¶
func (module *ModuleBase) NotifyDirtyness(externalSource Module)
type Options ¶
type Options struct { Optional bool ReloadOnChange bool Delimiter string SentinelOptions *SentinelOptions }
type RefreshPolicy ¶
type RefreshPolicy int
const ( RefreshAll RefreshPolicy = iota RefreshCurrentAndOver RefreshCurrentAndUnder RefreshCurrent )
type SentinelOptions ¶
type SentinelOptions struct { Key string RefreshPolicy RefreshPolicy }
Click to show internal directories.
Click to hide internal directories.