Documentation ¶
Overview ¶
Package provider contains default implementations from config.Provider interface
Index ¶
- type Default
- func (c *Default) AllSettings() map[string]interface{}
- func (c *Default) Bool(name string) bool
- func (c *Default) Float(name string) float64
- func (c *Default) Get(name string) (interface{}, bool)
- func (c *Default) Int(name string) int
- func (c *Default) IsSet(name string) bool
- func (c *Default) Set(name string, value interface{}) interface{}
- func (c *Default) Source() string
- func (c *Default) String(name string) string
- func (c *Default) StringSlice(name string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Default ¶
type Default struct { // SourceName associated with this provider SourceName string // Default containing all properties associated with this provider Repository config.Repository // ValueConverter is used to convert values providing from repository ValueConverter config.ValueConverter }
Default implements config.Provider backed by a config.Repository
func (*Default) AllSettings ¶
AllSettings returns all values associated with this provider as a map[string]interface{}.
func (*Default) StringSlice ¶
StringSlice returns a string slice value associated with the key.
Click to show internal directories.
Click to hide internal directories.