Documentation ¶
Index ¶
- Variables
- type PrimaryStatus
- func (*PrimaryStatus) Descriptor() ([]byte, []int)deprecated
- func (x *PrimaryStatus) GetFilePosition() string
- func (x *PrimaryStatus) GetPosition() string
- func (m *PrimaryStatus) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PrimaryStatus) MarshalToVT(dAtA []byte) (int, error)
- func (m *PrimaryStatus) MarshalVT() (dAtA []byte, err error)
- func (*PrimaryStatus) ProtoMessage()
- func (x *PrimaryStatus) ProtoReflect() protoreflect.Message
- func (x *PrimaryStatus) Reset()
- func (m *PrimaryStatus) SizeVT() (n int)
- func (x *PrimaryStatus) String() string
- func (m *PrimaryStatus) UnmarshalVT(dAtA []byte) error
- type Status
- func (*Status) Descriptor() ([]byte, []int)deprecated
- func (x *Status) GetConnectRetry() int32
- func (x *Status) GetFilePosition() string
- func (x *Status) GetFileRelayLogPosition() string
- func (x *Status) GetIoThreadRunning() bool
- func (x *Status) GetPosition() string
- func (x *Status) GetRelayLogPosition() string
- func (x *Status) GetReplicationLagSeconds() uint32
- func (x *Status) GetSourceHost() string
- func (x *Status) GetSourcePort() int32
- func (x *Status) GetSourceServerId() uint32
- func (x *Status) GetSourceUuid() string
- func (x *Status) GetSqlThreadRunning() bool
- func (m *Status) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Status) MarshalToVT(dAtA []byte) (int, error)
- func (m *Status) MarshalVT() (dAtA []byte, err error)
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (m *Status) SizeVT() (n int)
- func (x *Status) String() string
- func (m *Status) UnmarshalVT(dAtA []byte) error
- type StopReplicationMode
- func (StopReplicationMode) Descriptor() protoreflect.EnumDescriptor
- func (x StopReplicationMode) Enum() *StopReplicationMode
- func (StopReplicationMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x StopReplicationMode) Number() protoreflect.EnumNumber
- func (x StopReplicationMode) String() string
- func (StopReplicationMode) Type() protoreflect.EnumType
- type StopReplicationStatus
- func (*StopReplicationStatus) Descriptor() ([]byte, []int)deprecated
- func (x *StopReplicationStatus) GetAfter() *Status
- func (x *StopReplicationStatus) GetBefore() *Status
- func (m *StopReplicationStatus) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *StopReplicationStatus) MarshalToVT(dAtA []byte) (int, error)
- func (m *StopReplicationStatus) MarshalVT() (dAtA []byte, err error)
- func (*StopReplicationStatus) ProtoMessage()
- func (x *StopReplicationStatus) ProtoReflect() protoreflect.Message
- func (x *StopReplicationStatus) Reset()
- func (m *StopReplicationStatus) SizeVT() (n int)
- func (x *StopReplicationStatus) String() string
- func (m *StopReplicationStatus) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( StopReplicationMode_name = map[int32]string{ 0: "IOANDSQLTHREAD", 1: "IOTHREADONLY", } StopReplicationMode_value = map[string]int32{ "IOANDSQLTHREAD": 0, "IOTHREADONLY": 1, } )
Enum value maps for StopReplicationMode.
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var File_replicationdata_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PrimaryStatus ¶ added in v0.12.0
type PrimaryStatus struct { Position string `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` FilePosition string `protobuf:"bytes,2,opt,name=file_position,json=filePosition,proto3" json:"file_position,omitempty"` // contains filtered or unexported fields }
PrimaryStatus is the replication status for a MySQL primary (returned by 'show master status').
func (*PrimaryStatus) Descriptor
deprecated
added in
v0.12.0
func (*PrimaryStatus) Descriptor() ([]byte, []int)
Deprecated: Use PrimaryStatus.ProtoReflect.Descriptor instead.
func (*PrimaryStatus) GetFilePosition ¶ added in v0.12.0
func (x *PrimaryStatus) GetFilePosition() string
func (*PrimaryStatus) GetPosition ¶ added in v0.12.0
func (x *PrimaryStatus) GetPosition() string
func (*PrimaryStatus) MarshalToSizedBufferVT ¶ added in v0.12.0
func (m *PrimaryStatus) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PrimaryStatus) MarshalToVT ¶ added in v0.12.0
func (m *PrimaryStatus) MarshalToVT(dAtA []byte) (int, error)
func (*PrimaryStatus) MarshalVT ¶ added in v0.12.0
func (m *PrimaryStatus) MarshalVT() (dAtA []byte, err error)
func (*PrimaryStatus) ProtoMessage ¶ added in v0.12.0
func (*PrimaryStatus) ProtoMessage()
func (*PrimaryStatus) ProtoReflect ¶ added in v0.12.0
func (x *PrimaryStatus) ProtoReflect() protoreflect.Message
func (*PrimaryStatus) Reset ¶ added in v0.12.0
func (x *PrimaryStatus) Reset()
func (*PrimaryStatus) SizeVT ¶ added in v0.12.0
func (m *PrimaryStatus) SizeVT() (n int)
func (*PrimaryStatus) String ¶ added in v0.12.0
func (x *PrimaryStatus) String() string
func (*PrimaryStatus) UnmarshalVT ¶ added in v0.12.0
func (m *PrimaryStatus) UnmarshalVT(dAtA []byte) error
type Status ¶
type Status struct { Position string `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` IoThreadRunning bool `protobuf:"varint,2,opt,name=io_thread_running,json=ioThreadRunning,proto3" json:"io_thread_running,omitempty"` SqlThreadRunning bool `protobuf:"varint,3,opt,name=sql_thread_running,json=sqlThreadRunning,proto3" json:"sql_thread_running,omitempty"` ReplicationLagSeconds uint32 `` /* 127-byte string literal not displayed */ SourceHost string `protobuf:"bytes,5,opt,name=source_host,json=sourceHost,proto3" json:"source_host,omitempty"` SourcePort int32 `protobuf:"varint,6,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"` ConnectRetry int32 `protobuf:"varint,7,opt,name=connect_retry,json=connectRetry,proto3" json:"connect_retry,omitempty"` // RelayLogPosition will be empty for flavors that do not support returning the full GTIDSet from the relay log, such as MariaDB. RelayLogPosition string `protobuf:"bytes,8,opt,name=relay_log_position,json=relayLogPosition,proto3" json:"relay_log_position,omitempty"` FilePosition string `protobuf:"bytes,9,opt,name=file_position,json=filePosition,proto3" json:"file_position,omitempty"` FileRelayLogPosition string `` /* 126-byte string literal not displayed */ SourceServerId uint32 `protobuf:"varint,11,opt,name=source_server_id,json=sourceServerId,proto3" json:"source_server_id,omitempty"` SourceUuid string `protobuf:"bytes,12,opt,name=source_uuid,json=sourceUuid,proto3" json:"source_uuid,omitempty"` // contains filtered or unexported fields }
Status is the replication status for MySQL/MariaDB/File-based. Returned by a flavor-specific command and parsed into a Position and fields.
func (*Status) Descriptor
deprecated
func (*Status) GetConnectRetry ¶ added in v0.12.0
func (*Status) GetFilePosition ¶
func (*Status) GetFileRelayLogPosition ¶
func (*Status) GetIoThreadRunning ¶
func (*Status) GetPosition ¶
func (*Status) GetRelayLogPosition ¶
func (*Status) GetReplicationLagSeconds ¶ added in v0.12.0
func (*Status) GetSourceHost ¶ added in v0.12.0
func (*Status) GetSourcePort ¶ added in v0.12.0
func (*Status) GetSourceServerId ¶ added in v0.12.0
func (*Status) GetSourceUuid ¶ added in v0.12.0
func (*Status) GetSqlThreadRunning ¶
func (*Status) MarshalToSizedBufferVT ¶ added in v0.11.0
func (*Status) MarshalToVT ¶ added in v0.11.0
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶ added in v0.11.0
func (x *Status) ProtoReflect() protoreflect.Message
func (*Status) UnmarshalVT ¶ added in v0.11.0
type StopReplicationMode ¶
type StopReplicationMode int32
StopReplicationMode is used to provide controls over how replication is stopped.
const ( StopReplicationMode_IOANDSQLTHREAD StopReplicationMode = 0 StopReplicationMode_IOTHREADONLY StopReplicationMode = 1 )
func (StopReplicationMode) Descriptor ¶ added in v0.11.0
func (StopReplicationMode) Descriptor() protoreflect.EnumDescriptor
func (StopReplicationMode) Enum ¶ added in v0.11.0
func (x StopReplicationMode) Enum() *StopReplicationMode
func (StopReplicationMode) EnumDescriptor
deprecated
func (StopReplicationMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use StopReplicationMode.Descriptor instead.
func (StopReplicationMode) Number ¶ added in v0.11.0
func (x StopReplicationMode) Number() protoreflect.EnumNumber
func (StopReplicationMode) String ¶
func (x StopReplicationMode) String() string
func (StopReplicationMode) Type ¶ added in v0.11.0
func (StopReplicationMode) Type() protoreflect.EnumType
type StopReplicationStatus ¶
type StopReplicationStatus struct { Before *Status `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"` After *Status `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"` // contains filtered or unexported fields }
StopReplicationStatus represents the replication status before calling StopReplication, and the replication status collected immediately after calling StopReplication.
func (*StopReplicationStatus) Descriptor
deprecated
func (*StopReplicationStatus) Descriptor() ([]byte, []int)
Deprecated: Use StopReplicationStatus.ProtoReflect.Descriptor instead.
func (*StopReplicationStatus) GetAfter ¶
func (x *StopReplicationStatus) GetAfter() *Status
func (*StopReplicationStatus) GetBefore ¶
func (x *StopReplicationStatus) GetBefore() *Status
func (*StopReplicationStatus) MarshalToSizedBufferVT ¶ added in v0.11.0
func (m *StopReplicationStatus) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*StopReplicationStatus) MarshalToVT ¶ added in v0.11.0
func (m *StopReplicationStatus) MarshalToVT(dAtA []byte) (int, error)
func (*StopReplicationStatus) MarshalVT ¶ added in v0.11.0
func (m *StopReplicationStatus) MarshalVT() (dAtA []byte, err error)
func (*StopReplicationStatus) ProtoMessage ¶
func (*StopReplicationStatus) ProtoMessage()
func (*StopReplicationStatus) ProtoReflect ¶ added in v0.11.0
func (x *StopReplicationStatus) ProtoReflect() protoreflect.Message
func (*StopReplicationStatus) Reset ¶
func (x *StopReplicationStatus) Reset()
func (*StopReplicationStatus) SizeVT ¶ added in v0.11.0
func (m *StopReplicationStatus) SizeVT() (n int)
func (*StopReplicationStatus) String ¶
func (x *StopReplicationStatus) String() string
func (*StopReplicationStatus) UnmarshalVT ¶ added in v0.11.0
func (m *StopReplicationStatus) UnmarshalVT(dAtA []byte) error