Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { ConfigFileUsed() string Get(key string) interface{} GetBool(key string) bool GetDuration(key string) time.Duration GetFloat64(key string) float64 GetInt(key string) int GetInt64(key string) int64 GetSizeInBytes(key string) uint GetString(key string) string GetStringMap(key string) map[string]interface{} GetStringMapString(key string) map[string]string GetStringMapStringSlice(key string) map[string][]string GetStringSlice(key string) []string GetTime(key string) time.Time InConfig(key string) bool IsSet(key string) bool }
Provider defines a set of read-only methods for accessing the application configuration params as defined in one of the config files.
func LoadConfigProvider ¶
LoadConfigProvider returns a configured viper instance
type TunnelConfig ¶ added in v0.0.2
type TunnelConfig struct { }
func NewTunnelConfig ¶ added in v0.0.2
func NewTunnelConfig() (*TunnelConfig, error)
func (*TunnelConfig) Add ¶ added in v0.0.2
func (c *TunnelConfig) Add(tunnelKey string, cfg TunnelConfigItem) (*TunnelConfig, error)
func (*TunnelConfig) Get ¶ added in v0.0.2
func (c *TunnelConfig) Get(host string) (*TunnelConfigItem, error)
type TunnelConfigItem ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.