Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Connection config type to be passed. Connection ConnectionConfig // ConfigType config type to be passed. ConfigType string // Interval to run update periodically // default 0, it will not run periodically background process to update Interval time.Duration }
Config mandatory to be passed on initialization.
func (*Config) GetConsulRemote ¶
GetConsulRemote function to get consul remote host.
func (*Config) SetConsulRemote ¶
func (c *Config) SetConsulRemote()
SetConsulRemote function to set consul remote host token.
type ConnectionConfig ¶
type ConnectionConfig struct { // Host config to set consul host. Host string // Port config to set consul port. Port int // Token config to set consul http token. Token string // Key consul key path to be read. Key string }
ConnectionConfig mandatory contains consul connection settings.
Click to show internal directories.
Click to hide internal directories.