Documentation ¶
Index ¶
- func New(filename string) (providers.ConfigurationProvider, error)
- type TomlConfigProvider
- func (p *TomlConfigProvider) Get(key string) (interface{}, error)
- func (p *TomlConfigProvider) GetBool(key string) (bool, error)
- func (p *TomlConfigProvider) GetBytes(key string) ([]byte, error)
- func (p *TomlConfigProvider) GetInt(key string) (int, error)
- func (p *TomlConfigProvider) GetInt64(key string) (int64, error)
- func (p *TomlConfigProvider) GetLocalStore() string
- func (p *TomlConfigProvider) GetMany(keys ...string) ([]interface{}, error)
- func (p *TomlConfigProvider) GetString(key string) (string, error)
- func (p *TomlConfigProvider) GetStringOrDefault(key, def string) string
- func (p *TomlConfigProvider) GetStrings(keys ...string) ([]string, error)
- func (p *TomlConfigProvider) HasKey(key string) bool
- func (p *TomlConfigProvider) IsWriteable() bool
- func (p *TomlConfigProvider) Set(key string, value interface{}) error
- func (p *TomlConfigProvider) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TomlConfigProvider ¶
type TomlConfigProvider struct {
// contains filtered or unexported fields
}
func (*TomlConfigProvider) Get ¶
func (p *TomlConfigProvider) Get(key string) (interface{}, error)
func (*TomlConfigProvider) GetBytes ¶
func (p *TomlConfigProvider) GetBytes(key string) ([]byte, error)
func (*TomlConfigProvider) GetInt64 ¶
func (p *TomlConfigProvider) GetInt64(key string) (int64, error)
func (*TomlConfigProvider) GetLocalStore ¶
func (p *TomlConfigProvider) GetLocalStore() string
func (*TomlConfigProvider) GetMany ¶
func (p *TomlConfigProvider) GetMany(keys ...string) ([]interface{}, error)
func (*TomlConfigProvider) GetString ¶
func (p *TomlConfigProvider) GetString(key string) (string, error)
func (*TomlConfigProvider) GetStringOrDefault ¶
func (p *TomlConfigProvider) GetStringOrDefault(key, def string) string
func (*TomlConfigProvider) GetStrings ¶
func (p *TomlConfigProvider) GetStrings(keys ...string) ([]string, error)
func (*TomlConfigProvider) HasKey ¶
func (p *TomlConfigProvider) HasKey(key string) bool
func (*TomlConfigProvider) IsWriteable ¶
func (p *TomlConfigProvider) IsWriteable() bool
func (*TomlConfigProvider) Set ¶
func (p *TomlConfigProvider) Set(key string, value interface{}) error
func (*TomlConfigProvider) String ¶
func (p *TomlConfigProvider) String() string
Click to show internal directories.
Click to hide internal directories.