Documentation
¶
Index ¶
- Variables
- func DeRegisterService(serviceID string) error
- func GetHealthServices(serviceName string) ([]api.AgentServiceChecksInfo, error)
- func GetRandomProxyService(serviceName string) (*api.AgentService, error)
- func GetService(serviceID string) (*api.AgentService, error)
- func GetServices(map[string]*api.AgentService, error) (map[string]*api.AgentService, error)
- func RegisterMetricService(server string, port int) error
- func RegisterProxyNode(server string, port int, provider string, region string) error
- func Setup()
Constants ¶
This section is empty.
Variables ¶
View Source
var ConsulConn *api.Client
ConsulConn client
Functions ¶
func GetHealthServices ¶
func GetHealthServices(serviceName string) ([]api.AgentServiceChecksInfo, error)
func GetRandomProxyService ¶
func GetRandomProxyService(serviceName string) (*api.AgentService, error)
func GetServices ¶
func GetServices(map[string]*api.AgentService, error) (map[string]*api.AgentService, error)
GetServices ...
func RegisterMetricService ¶
func RegisterProxyNode ¶
TODO: set constant in module, add prometheus service register
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.