replicationdata

package
v0.12.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StopReplicationMode_name = map[int32]string{
		0: "IOANDSQLTHREAD",
		1: "IOTHREADONLY",
	}
	StopReplicationMode_value = map[string]int32{
		"IOANDSQLTHREAD": 0,
		"IOTHREADONLY":   1,
	}
)

Enum value maps for StopReplicationMode.

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetConnectRetry added in v0.12.0

func (x *Status) GetConnectRetry() int32

func (*Status) GetFilePosition

func (x *Status) GetFilePosition() string

func (*Status) GetFileRelayLogPosition

func (x *Status) GetFileRelayLogPosition() string

func (*Status) GetIoThreadRunning

func (x *Status) GetIoThreadRunning() bool

func (*Status) GetPosition

func (x *Status) GetPosition() string

func (*Status) GetRelayLogPosition

func (x *Status) GetRelayLogPosition() string

func (*Status) GetReplicationLagSeconds added in v0.12.0

func (x *Status) GetReplicationLagSeconds() uint32

func (*Status) GetSourceHost added in v0.12.0

func (x *Status) GetSourceHost() string

func (*Status) GetSourcePort added in v0.12.0

func (x *Status) GetSourcePort() int32

func (*Status) GetSourceServerId added in v0.12.0

func (x *Status) GetSourceServerId() uint32

func (*Status) GetSourceUuid added in v0.12.0

func (x *Status) GetSourceUuid() string

func (*Status) GetSqlThreadRunning

func (x *Status) GetSqlThreadRunning() bool

func (*Status) MarshalToSizedBufferVT added in v0.11.0

func (m *Status) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Status) MarshalToVT added in v0.11.0

func (m *Status) MarshalToVT(dAtA []byte) (int, error)

func (*Status) MarshalVT added in v0.11.0

func (m *Status) MarshalVT() (dAtA []byte, err error)

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect added in v0.11.0

func (x *Status) ProtoReflect() protoreflect.Message

func (*Status) Reset

func (x *Status) Reset()

func (*Status) SizeVT added in v0.11.0

func (m *Status) SizeVT() (n int)

func (*Status) String

func (x *Status) String() string

func (*Status) UnmarshalVT added in v0.11.0

func (m *Status) UnmarshalVT(dAtA []byte) error

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) Enum added in v0.11.0

func (StopReplicationMode) EnumDescriptor deprecated

func (StopReplicationMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use StopReplicationMode.Descriptor instead.

func (StopReplicationMode) Number added in v0.11.0

func (StopReplicationMode) String

func (x StopReplicationMode) String() string

func (StopReplicationMode) Type added in v0.11.0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL