Documentation ¶
Index ¶
- func FindAllScopedConfigNames(collName string) ([]string, error)
- type ScopedConfig
- func (n *ScopedConfig) GetName() string
- func (n *ScopedConfig) HasEntry(pool string) (bool, error)
- func (n *ScopedConfig) Load(pool string, poolVal interface{}) error
- func (n *ScopedConfig) LoadAll(allVal interface{}) error
- func (n *ScopedConfig) LoadBase(poolVal interface{}) error
- func (n *ScopedConfig) LoadPools(filterPools []string, allVal interface{}) error
- func (n *ScopedConfig) LoadPoolsMerge(filterPools []string, allVal interface{}, merge bool, includeDefault bool) error
- func (n *ScopedConfig) LoadWithBase(pool string, baseVal interface{}, poolVal interface{}) error
- func (n *ScopedConfig) Remove(pool string) error
- func (n *ScopedConfig) RemoveField(pool, name string) error
- func (n *ScopedConfig) Save(pool string, val interface{}) error
- func (n *ScopedConfig) SaveBase(val interface{}) error
- func (n *ScopedConfig) SaveMerge(pool string, val interface{}) error
- func (n *ScopedConfig) SetField(pool, name string, value interface{}) error
- func (n *ScopedConfig) SetFieldAtomic(pool, name string, value interface{}) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ScopedConfig ¶
type ScopedConfig struct { AllowedPools []string AllowEmpty bool ShallowMerge bool Jsonfy bool SliceAdd bool AllowMapEmpty bool PtrNilIsEmpty bool // contains filtered or unexported fields }
func FindScopedConfig ¶
func FindScopedConfig(coll string) *ScopedConfig
func FindScopedConfigFor ¶
func FindScopedConfigFor(coll, name string) *ScopedConfig
func (*ScopedConfig) GetName ¶
func (n *ScopedConfig) GetName() string
func (*ScopedConfig) Load ¶
func (n *ScopedConfig) Load(pool string, poolVal interface{}) error
func (*ScopedConfig) LoadAll ¶
func (n *ScopedConfig) LoadAll(allVal interface{}) error
func (*ScopedConfig) LoadBase ¶
func (n *ScopedConfig) LoadBase(poolVal interface{}) error
func (*ScopedConfig) LoadPools ¶
func (n *ScopedConfig) LoadPools(filterPools []string, allVal interface{}) error
func (*ScopedConfig) LoadPoolsMerge ¶
func (n *ScopedConfig) LoadPoolsMerge(filterPools []string, allVal interface{}, merge bool, includeDefault bool) error
func (*ScopedConfig) LoadWithBase ¶
func (n *ScopedConfig) LoadWithBase(pool string, baseVal interface{}, poolVal interface{}) error
func (*ScopedConfig) Remove ¶
func (n *ScopedConfig) Remove(pool string) error
func (*ScopedConfig) RemoveField ¶
func (n *ScopedConfig) RemoveField(pool, name string) error
func (*ScopedConfig) Save ¶
func (n *ScopedConfig) Save(pool string, val interface{}) error
func (*ScopedConfig) SaveBase ¶
func (n *ScopedConfig) SaveBase(val interface{}) error
func (*ScopedConfig) SaveMerge ¶
func (n *ScopedConfig) SaveMerge(pool string, val interface{}) error
func (*ScopedConfig) SetField ¶
func (n *ScopedConfig) SetField(pool, name string, value interface{}) error
func (*ScopedConfig) SetFieldAtomic ¶
func (n *ScopedConfig) SetFieldAtomic(pool, name string, value interface{}) (bool, error)
Click to show internal directories.
Click to hide internal directories.