Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostsNamespace ¶
func HostsNamespace() string
HostsNamespace returns the gateway hosts prefix of ETCD key.
func SetHostsNamespace ¶
func SetHostsNamespace(prefix string)
SetHostsNamespace sets the gateway hosts prefix of ETCD key.
func SocketAddress ¶
func SocketAddress() (outer, inner string)
SocketAddress returns the current gateway addresses.
Types ¶
type Hosts ¶
type Hosts struct {
// contains filtered or unexported fields
}
Hosts gateway ip:port list
type SortWeightIps ¶
type SortWeightIps []*WeightIp
SortWeightIps IP weight information list for sorting
func (SortWeightIps) Len ¶
func (s SortWeightIps) Len() int
Len is the number of elements in the collection.
func (SortWeightIps) Less ¶
func (s SortWeightIps) Less(i, j int) bool
Less reports whether the element with index i should sort before the element with index j.
func (SortWeightIps) Swap ¶
func (s SortWeightIps) Swap(i, j int)
Swap swaps the elements with indexes i and j.
Click to show internal directories.
Click to hide internal directories.