Documentation ¶
Index ¶
- func NewStateBackend() cluster.Backend
- type ClusterBackend
- func (c *ClusterBackend) DeleteLeaderEntries(uuid uuid.UUID)
- func (c *ClusterBackend) DeleteLeaderEntry(uuid uuid.UUID) error
- func (c *ClusterBackend) GetClusterInfo() (*state.ClusterInfo, error)
- func (c *ClusterBackend) GetClusterLeader(id string) (*state.ClusterMember, error)
- func (c *ClusterBackend) Lock(value string) (cluster.BackendLock, error)
- func (c *ClusterBackend) PutClusterInfo(info *state.ClusterInfo) error
- func (c *ClusterBackend) PutClusterLeader(leader *state.ClusterMember) error
- func (c *ClusterBackend) SupportsHA() bool
- type ClusterLock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStateBackend ¶
Types ¶
type ClusterBackend ¶
type ClusterBackend struct {
// contains filtered or unexported fields
}
func (*ClusterBackend) DeleteLeaderEntries ¶
func (c *ClusterBackend) DeleteLeaderEntries(uuid uuid.UUID)
func (*ClusterBackend) DeleteLeaderEntry ¶
func (c *ClusterBackend) DeleteLeaderEntry(uuid uuid.UUID) error
func (*ClusterBackend) GetClusterInfo ¶
func (c *ClusterBackend) GetClusterInfo() (*state.ClusterInfo, error)
func (*ClusterBackend) GetClusterLeader ¶
func (c *ClusterBackend) GetClusterLeader(id string) (*state.ClusterMember, error)
func (*ClusterBackend) Lock ¶
func (c *ClusterBackend) Lock(value string) (cluster.BackendLock, error)
func (*ClusterBackend) PutClusterInfo ¶
func (c *ClusterBackend) PutClusterInfo(info *state.ClusterInfo) error
func (*ClusterBackend) PutClusterLeader ¶
func (c *ClusterBackend) PutClusterLeader(leader *state.ClusterMember) error
func (*ClusterBackend) SupportsHA ¶
func (c *ClusterBackend) SupportsHA() bool
type ClusterLock ¶
type ClusterLock struct {
// contains filtered or unexported fields
}
func (*ClusterLock) Acquire ¶
func (c *ClusterLock) Acquire(stopCh <-chan struct{}) (<-chan struct{}, error)
func (*ClusterLock) Release ¶
func (c *ClusterLock) Release() error
Click to show internal directories.
Click to hide internal directories.