Documentation ¶
Index ¶
- func NewManager(properties engines.Properties) (engines.DBManager, error)
- type Manager
- func (mgr *Manager) Demote(ctx context.Context) error
- func (mgr *Manager) Follow(ctx context.Context, cluster *dcs.Cluster) error
- func (mgr *Manager) GetDBState(ctx context.Context, cluster *dcs.Cluster) *dcs.DBState
- func (mgr *Manager) GetMemberAddrs(_ context.Context, cluster *dcs.Cluster) []string
- func (mgr *Manager) GetMemberRoleWithHost(ctx context.Context, host string) (string, error)
- func (mgr *Manager) GetReplicaRole(ctx context.Context, cluster *dcs.Cluster) (string, error)
- func (mgr *Manager) HasOtherHealthyLeader(context.Context, *dcs.Cluster) *dcs.Member
- func (mgr *Manager) HasOtherHealthyMembers(ctx context.Context, cluster *dcs.Cluster, leader string) []*dcs.Member
- func (mgr *Manager) InitializeCluster(context.Context, *dcs.Cluster) error
- func (mgr *Manager) IsClusterInitialized(context.Context, *dcs.Cluster) (bool, error)
- func (mgr *Manager) IsCurrentMemberHealthy(ctx context.Context, cluster *dcs.Cluster) bool
- func (mgr *Manager) IsCurrentMemberInCluster(context.Context, *dcs.Cluster) bool
- func (mgr *Manager) IsDBStartupReady() bool
- func (mgr *Manager) IsLeader(ctx context.Context, _ *dcs.Cluster) (bool, error)
- func (mgr *Manager) IsLeaderWithHost(ctx context.Context, host string) (bool, error)
- func (mgr *Manager) IsMemberHealthy(ctx context.Context, cluster *dcs.Cluster, member *dcs.Member) bool
- func (mgr *Manager) IsMemberLagging(ctx context.Context, cluster *dcs.Cluster, member *dcs.Member) (bool, int64)
- func (mgr *Manager) JoinCurrentMemberToCluster(context.Context, *dcs.Cluster) error
- func (mgr *Manager) LeaveMemberFromCluster(context.Context, *dcs.Cluster, string) error
- func (mgr *Manager) Promote(ctx context.Context, _ *dcs.Cluster) error
- func (mgr *Manager) Start(ctx context.Context, cluster *dcs.Cluster) error
- func (mgr *Manager) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManager ¶
func NewManager(properties engines.Properties) (engines.DBManager, error)
Types ¶
type Manager ¶
var Mgr *Manager
func (*Manager) GetDBState ¶
func (*Manager) GetMemberAddrs ¶
func (*Manager) GetMemberRoleWithHost ¶
func (*Manager) GetReplicaRole ¶
func (*Manager) HasOtherHealthyLeader ¶
func (*Manager) HasOtherHealthyMembers ¶
func (*Manager) InitializeCluster ¶
func (*Manager) IsClusterInitialized ¶
func (*Manager) IsCurrentMemberHealthy ¶
func (*Manager) IsCurrentMemberInCluster ¶
func (*Manager) IsDBStartupReady ¶
func (*Manager) IsLeaderWithHost ¶
func (*Manager) IsMemberHealthy ¶
func (*Manager) IsMemberLagging ¶
func (*Manager) JoinCurrentMemberToCluster ¶
func (*Manager) LeaveMemberFromCluster ¶
Click to show internal directories.
Click to hide internal directories.