Documentation ¶
Index ¶
- type Cluster
- func (c *Cluster) Addr() string
- func (c *Cluster) Join(addr ...string) (int, error)
- func (c *Cluster) Leave() error
- func (c *Cluster) MemberByHash(h uint64) rony.ClusterMember
- func (c *Cluster) MemberByID(serverID string) rony.ClusterMember
- func (c *Cluster) Members() []rony.ClusterMember
- func (c *Cluster) MembersByReplicaSet(replicaSets ...uint64) []rony.ClusterMember
- func (c *Cluster) ReplicaSet() uint64
- func (c *Cluster) ServerID() string
- func (c *Cluster) SetGatewayAddrs(hostPorts []string) error
- func (c *Cluster) SetTunnelAddrs(hostPorts []string) error
- func (c *Cluster) Shutdown()
- func (c *Cluster) Start() error
- func (c *Cluster) Subscribe(d rony.ClusterDelegate)
- func (c *Cluster) TotalReplicas() int
- type Config
- type Member
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 (c *Cluster) MemberByHash(h uint64) rony.ClusterMember
func (*Cluster) MemberByID ¶ added in v0.7.4
func (c *Cluster) MemberByID(serverID string) rony.ClusterMember
func (*Cluster) Members ¶
func (c *Cluster) Members() []rony.ClusterMember
func (*Cluster) MembersByReplicaSet ¶ added in v0.7.2
func (c *Cluster) MembersByReplicaSet(replicaSets ...uint64) []rony.ClusterMember
func (*Cluster) ReplicaSet ¶
func (*Cluster) SetGatewayAddrs ¶
func (*Cluster) SetTunnelAddrs ¶ added in v0.5.20
func (*Cluster) Subscribe ¶ added in v0.7.4
func (c *Cluster) Subscribe(d rony.ClusterDelegate)
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.