Documentation ¶
Index ¶
- func GenerateKVWebURL(uiBaseAddress, key string) string
- type Client
- type ConsulClient
- func (client *ConsulClient) GetConsulAddr() string
- func (client *ConsulClient) GetConsulUIBaseAddr() (string, error)
- func (client *ConsulClient) GetCurrentDatacenter() (string, error)
- func (client *ConsulClient) GetSchemeType() string
- func (client *ConsulClient) List(prefix string) (c.KVPairs, error)
- func (client *ConsulClient) ListDatacenters() ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKVWebURL ¶
Types ¶
type Client ¶
type ConsulClient ¶
type ConsulClient struct {
// contains filtered or unexported fields
}
func (*ConsulClient) GetConsulAddr ¶
func (client *ConsulClient) GetConsulAddr() string
func (*ConsulClient) GetConsulUIBaseAddr ¶
func (client *ConsulClient) GetConsulUIBaseAddr() (string, error)
func (*ConsulClient) GetCurrentDatacenter ¶
func (client *ConsulClient) GetCurrentDatacenter() (string, error)
func (*ConsulClient) GetSchemeType ¶
func (client *ConsulClient) GetSchemeType() string
http or https scheme type
func (*ConsulClient) ListDatacenters ¶
func (client *ConsulClient) ListDatacenters() ([]string, error)
Click to show internal directories.
Click to hide internal directories.