Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMemberNotFound = errors.New("member not found")
Functions ¶
This section is empty.
Types ¶
type ClusterStatus ¶
type ClusterStatus string
const ( ClusterStatusOK ClusterStatus = "OK" ClusterStatusOKPartial ClusterStatus = "OK_PARTIAL" ClusterStatusOKNoTolerance ClusterStatus = "OK_NO_TOLERANCE" ClusterStatusOKNoTolerancePartial ClusterStatus = "OK_NO_TOLERANCE_PARTIAL" ClusterStatusOffline ClusterStatus = "OFFLINE" )
type Member ¶
type Member struct { Address string `json:"address"` MemberRole MemberRole `json:"memberRole"` MemberState MemberState `json:"status"` InstanceErrors []string `json:"instanceErrors"` }
type MemberRole ¶ added in v0.9.0
type MemberRole string
const (
MemberRolePrimary MemberRole = "PRIMARY"
)
type MemberState ¶
type MemberState string
const ( MemberStateOnline MemberState = "ONLINE" MemberStateOffline MemberState = "OFFLINE" MemberStateUnreachable MemberState = "UNREACHABLE" MemberStateMissing MemberState = "(MISSING)" )
type RecoveryMethod ¶ added in v0.12.0
type RecoveryMethod string
const ( RecoveryClone RecoveryMethod = "clone" RecoveryIncremental RecoveryMethod = "incremental" )
type ReplicaGtidState ¶ added in v0.12.0
type ReplicaGtidState string
const ( ReplicaGtidNew ReplicaGtidState = "NEW" ReplicaGtidIdentical ReplicaGtidState = "IDENTICAL" ReplicaGtidDiverged ReplicaGtidState = "DIVERGED" ReplicaGtidRecoverable ReplicaGtidState = "RECOVERABLE" ReplicaGtidIrrecoverable ReplicaGtidState = "IRRECOVERABLE" )
type ReplicaSetStatus ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.