Documentation ¶
Index ¶
- Variables
- type Cluster
- func (c *Cluster) Addr() string
- func (c *Cluster) Join(addr ...string) (int, error)
- func (c *Cluster) MemberByHash(h uint64) cluster.Member
- func (c *Cluster) MemberByID(serverID string) cluster.Member
- func (c *Cluster) Members() []cluster.Member
- func (c *Cluster) MembersByReplicaSet(replicaSets ...uint64) []cluster.Member
- func (c *Cluster) ReplicaSet() uint64
- func (c *Cluster) ServerID() []byte
- func (c *Cluster) SetGatewayAddrs(hostPorts []string) error
- func (c *Cluster) SetTunnelAddrs(hostPorts []string) error
- func (c *Cluster) Shutdown()
- func (c *Cluster) Start()
- func (c *Cluster) Subscribe(d cluster.Delegate)
- func (c *Cluster) TotalReplicas() int
- type Config
- type Member
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoTunnelAddrs = errors.New("tunnel address does not found")
)
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func (*Cluster) MemberByHash ¶ added in v0.7.4
func (*Cluster) MemberByID ¶ added in v0.7.4
func (*Cluster) MembersByReplicaSet ¶ added in v0.7.2
func (*Cluster) ReplicaSet ¶
func (*Cluster) SetGatewayAddrs ¶
func (*Cluster) SetTunnelAddrs ¶ added in v0.5.20
func (*Cluster) TotalReplicas ¶ added in v0.5.20
type Member ¶
type Member struct { ClusterAddr net.IP ClusterPort uint16 // contains filtered or unexported fields }
func (*Member) GatewayAddr ¶
func (*Member) ReplicaSet ¶
func (*Member) TunnelAddr ¶ added in v0.5.20
Click to show internal directories.
Click to hide internal directories.