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) GetMemberState(ctx context.Context, host string) (db.MemberState, error)
- func (d *DB) IsReadonly(ctx context.Context) (bool, error)
- func (d *DB) IsReplica(ctx context.Context) (bool, 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) StartReplication(ctx context.Context, host, replicaPass string, port int32) error
- func (d *DB) StopReplication(ctx context.Context) error
- type DBParams
- type ReplicationStatus
Constants ¶
This section is empty.
Variables ¶
View Source
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) GetMemberState ¶
func (*DB) ReplicationStatus ¶
func (*DB) StartReplication ¶
type DBParams ¶
type ReplicationStatus ¶
type ReplicationStatus int8
Click to show internal directories.
Click to hide internal directories.