Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterState ¶
type ClusterState int
ClusterState represents the current state of the SWO cluster.
const ( ClusterStateUnknown ClusterState = iota ClusterStateResetting ClusterStateIdle ClusterStateSyncing ClusterStatePausing ClusterStateExecuting ClusterStateDone )
type Config ¶
type Config struct { // NodeID is the unique ID of the current node. NodeID uuid.UUID // CanExec indicates this member is allowed to execute tasks. CanExec bool // OldID and NewID represents the database IDs of the old and new databases, respectively. OldID, NewID uuid.UUID Logger *log.Logger Messages *swomsg.Log PauseFunc TaskFn ResumeFunc TaskFn Executor Executor }
Config is the configuration for a switchover group.
type Status ¶
type Status struct { State ClusterState Nodes []Node LeaderID uuid.UUID LastStatus string LastError string }
Status represents the current status of the switchover process.
Click to show internal directories.
Click to hide internal directories.