Documentation
¶
Index ¶
- func GetConsulAddress() string
- func IsInsideDockerContainer() bool
- type Client
- func (c *Client) Close()
- func (c *Client) GetAddress(service string) string
- func (c *Client) GetAddressWithTag(service string, tag string) string
- func (c *Client) GetAllAddress(service string) []string
- func (c *Client) GetAllAddressWithTag(service string, tag string) []string
- func (c *Client) RegisterService(serviceName string, address string) error
- func (c *Client) RegisterServiceWithTag(serviceName string, address string, tag string) error
- func (c *Client) RegisterServiceWithTags(serviceName string, address string, tags []string) error
- type RegisteredService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConsulAddress ¶
func GetConsulAddress() string
func IsInsideDockerContainer ¶
func IsInsideDockerContainer() bool
Types ¶
type Client ¶
func GetConsulClient ¶
func GetConsulClient() *Client
func (*Client) GetAddress ¶
func (*Client) GetAddressWithTag ¶
func (*Client) GetAllAddress ¶
func (*Client) GetAllAddressWithTag ¶
func (*Client) RegisterService ¶
func (*Client) RegisterServiceWithTag ¶
type RegisteredService ¶
Click to show internal directories.
Click to hide internal directories.