Documentation ¶
Index ¶
- Constants
- type InstanceKey
- func (instanceKey *InstanceKey) DetachedKey() *InstanceKey
- func (instanceKey *InstanceKey) DisplayString() string
- func (instanceKey *InstanceKey) Equals(other *InstanceKey) bool
- func (instanceKey *InstanceKey) IsDetached() bool
- func (instanceKey *InstanceKey) IsIPv4() bool
- func (instanceKey *InstanceKey) IsValid() bool
- func (instanceKey *InstanceKey) ReattachedKey() *InstanceKey
- func (instanceKey *InstanceKey) SmallerThan(other *InstanceKey) bool
- func (instanceKey InstanceKey) String() string
- func (instanceKey *InstanceKey) StringCode() string
Constants ¶
const ( // Group member roles GroupReplicationMemberRolePrimary = "PRIMARY" GroupReplicationMemberRoleSecondary = "SECONDARY" // Group member states GroupReplicationMemberStateOnline = "ONLINE" GroupReplicationMemberStateRecovering = "RECOVERING" GroupReplicationMemberStateUnreachable = "UNREACHABLE" GroupReplicationMemberStateOffline = "OFFLINE" GroupReplicationMemberStateError = "ERROR" )
Constant strings for Group Replication information See https://dev.mysql.com/doc/refman/8.0/en/replication-group-members-table.html for additional information.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceKey ¶
InstanceKey is an instance indicator, identifued by hostname and port
func (*InstanceKey) DetachedKey ¶
func (instanceKey *InstanceKey) DetachedKey() *InstanceKey
DetachedKey returns an instance key whose hostname is detahced: invalid, but recoverable
func (*InstanceKey) DisplayString ¶
func (instanceKey *InstanceKey) DisplayString() string
DisplayString returns a user-friendly string representation of this key
func (*InstanceKey) Equals ¶
func (instanceKey *InstanceKey) Equals(other *InstanceKey) bool
Equals tests equality between this key and another key
func (*InstanceKey) IsDetached ¶
func (instanceKey *InstanceKey) IsDetached() bool
IsDetached returns 'true' when this hostname is logically "detached"
func (*InstanceKey) IsIPv4 ¶
func (instanceKey *InstanceKey) IsIPv4() bool
IsValid uses simple heuristics to see whether this key represents an actual instance
func (*InstanceKey) IsValid ¶
func (instanceKey *InstanceKey) IsValid() bool
IsValid uses simple heuristics to see whether this key represents an actual instance
func (*InstanceKey) ReattachedKey ¶
func (instanceKey *InstanceKey) ReattachedKey() *InstanceKey
ReattachedKey returns an instance key whose hostname is detahced: invalid, but recoverable
func (*InstanceKey) SmallerThan ¶
func (instanceKey *InstanceKey) SmallerThan(other *InstanceKey) bool
SmallerThan returns true if this key is dictionary-smaller than another. This is used for consistent sorting/ordering; there's nothing magical about it.
func (InstanceKey) String ¶
func (instanceKey InstanceKey) String() string
String returns a user-friendly string representation of this key
func (*InstanceKey) StringCode ¶
func (instanceKey *InstanceKey) StringCode() string
StringCode returns an official string representation of this key