Documentation
¶
Index ¶
- Variables
- type DB
- func (d *DB) CheckIfInPrimaryPartition(ctx context.Context) (bool, error)
- func (d *DB) Clone(ctx context.Context, donor, user, pass string, port int32, ...) error
- func (d *DB) CloneInProgress(ctx context.Context) (bool, error)
- func (d *DB) Close() error
- func (d *DB) DisableSuperReadonly(ctx context.Context) error
- func (d *DB) DumbQuery(ctx context.Context) error
- func (d *DB) EnableSuperReadonly(ctx context.Context) error
- func (d *DB) FlushRelayLogs(ctx context.Context) error
- func (d *DB) GTIDSubtract(ctx context.Context, set, other string) (string, error)
- func (d *DB) GetGTIDExecuted(ctx context.Context) (string, error)
- func (d *DB) GetGTIDPurged(ctx context.Context) (string, error)
- func (d *DB) GetMemberState(ctx context.Context, host string) (db.MemberState, error)
- func (d *DB) GetSelfState(ctx context.Context) (db.MemberState, error)
- func (d *DB) GetSourceLogPos(ctx context.Context) (ReplicaPosition, error)
- func (d *DB) IsGRConfigured(ctx context.Context) (bool, error)
- func (d *DB) IsReadonly(ctx context.Context) (bool, error)
- func (d *DB) IsReplica(ctx context.Context) (bool, error)
- func (d *DB) IsWritable(ctx context.Context) (bool, error)
- func (d *DB) RelayLogPaths(ctx context.Context) (string, string, error)
- func (d *DB) ReplicationStatus(ctx context.Context) (db.ReplicationStatus, string, error)
- func (d *DB) ReportHost(ctx context.Context) (string, error)
- func (d *DB) ResetReplication(ctx context.Context) error
- func (d *DB) ShowReplicaStatus(ctx context.Context) (map[string]string, error)
- func (d *DB) StartIOThread(ctx context.Context) error
- func (d *DB) StartReplicaThreads(ctx context.Context) error
- func (d *DB) StartReplication(ctx context.Context, host, replicaPass string, port int32, ...) error
- func (d *DB) StartSQLThread(ctx context.Context) error
- func (d *DB) StopReplication(ctx context.Context) error
- type DBParams
- type ReplicaPosition
- type ReplicationStatus
Constants ¶
This section is empty.
Variables ¶
var ErrRestartAfterClone = errors.New("Error 3707: Restart server failed (mysqld is not managed by supervisor process).")
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CheckIfInPrimaryPartition ¶
func (*DB) GTIDSubtract ¶ added in v1.3.0
func (*DB) GetGTIDExecuted ¶ added in v1.1.0
func (*DB) GetGTIDPurged ¶ added in v1.3.0
func (*DB) GetMemberState ¶
func (*DB) GetSelfState ¶ added in v1.3.0
func (*DB) GetSourceLogPos ¶ added in v1.3.0
func (d *DB) GetSourceLogPos(ctx context.Context) (ReplicaPosition, error)
func (*DB) IsGRConfigured ¶ added in v1.2.0
func (*DB) RelayLogPaths ¶ added in v1.3.0
RelayLogPaths returns the full path prefix shared by relay log files and the path of the relay log index file.
func (*DB) ReplicationStatus ¶
func (*DB) ShowReplicaStatus ¶ added in v1.3.0
func (*DB) StartReplicaThreads ¶ added in v1.3.0
StartReplicaThreads starts whichever replication threads are stopped, leaving the channel's configuration as it is.
func (*DB) StartReplication ¶
type DBParams ¶
type ReplicaPosition ¶ added in v1.3.0
type ReplicationStatus ¶
type ReplicationStatus int8