Documentation ¶
Index ¶
- func IsValidPropertyName(propName string) bool
- func IsValidPropertySubName(propName string) bool
- func NewEnvPropertyBacking() *envPropertyBacking
- func NewFileSystemPropertyBacking(root string) *filesystemPropertyBacking
- func NewPropertyService(backing ...PropertyBacking) *stdPropertyService
- func NewStaticMapPropertyBacking(propertyMap map[string]string) *staticMapPropertyBacking
- type PropertyBacking
- type PropertyBackingGetter
- type PropertyService
- type PropertyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidPropertyName ¶
func IsValidPropertySubName ¶
func NewEnvPropertyBacking ¶
func NewEnvPropertyBacking() *envPropertyBacking
func NewFileSystemPropertyBacking ¶
func NewFileSystemPropertyBacking(root string) *filesystemPropertyBacking
func NewPropertyService ¶
func NewPropertyService(backing ...PropertyBacking) *stdPropertyService
Create a new property service using the provided "backing" providers, in decreasing order of priority. * For example, passing (filesystem, env, map) will give priority to filesystem, then env (for keys that are * missing in the filesystem store) then finally map. * nil values are acceptable and ignored.
Types ¶
type PropertyBacking ¶
type PropertyBackingGetter ¶
type PropertyService ¶
type PropertyService interface { GetString(name string, fallback string) PropertyValue GetBool(name string, fallback bool) PropertyValue GetUInt64(name string, fallback uint64) PropertyValue GetFloat64(name string, fallback float64) PropertyValue Refresh() GetBoolSub(name string, fallback bool, sub ...interface{}) PropertyValue GetUInt64Sub(name string, fallback uint64, sub ...interface{}) PropertyValue }
Click to show internal directories.
Click to hide internal directories.