Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckKeyValuePairs ¶
func CheckKeyValuePairs(configurationStruct interface{}, applicationName string, profiles []string) error
Look at the key/value pairs to update configuration
func ConsulInit ¶
func ConsulInit(config ConsulConfig) error
Initialize consul by connecting to the agent and registering the service/check
func NewConsulDecoder ¶
func NewConsulDecoder(reg config.RegistryInfo) *consulstructure.Decoder
Types ¶
type ConsulConfig ¶
type ConsulConfig struct { ConsulAddress string ConsulPort int ServiceName string ServiceAddress string ServicePort int CheckAddress string CheckInterval string }
Configuration struct for consul - used to initialize the service
func NewConsulConfig ¶
func NewConsulConfig(reg config.RegistryInfo, svc config.ServiceInfo, key string) ConsulConfig
type ServiceEndpoint ¶
func GetServiceEndpoint ¶
func GetServiceEndpoint(serviceKey string) (ServiceEndpoint, error)
Click to show internal directories.
Click to hide internal directories.