Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulHelper ¶
ConsulHelper makes working with Consul distributed service discovery easier by providing function to read keys/values and convert them to int, string and etc.
func (ConsulHelper) GetInt ¶
func (consulHelper ConsulHelper) GetInt(keyPath string) (int, error)
GetInt converts the value identified by the given key path to an integer and returns it.
func (ConsulHelper) GetKeyPair ¶
func (consulHelper ConsulHelper) GetKeyPair(keyPath string) (*api.KVPair, error)
GetKeyPair returns key pair value.
Click to show internal directories.
Click to hide internal directories.