Documentation ¶
Index ¶
- Constants
- Variables
- type Database
- func (p *Database) AddReplicationSource(name, host string, port, weight int) error
- func (p *Database) ChangeChannelPassword(channel, password string) error
- func (p *Database) Close() error
- func (p *Database) CurrentReplicationChannels() ([]string, error)
- func (p *Database) DeleteReplicationSource(name, host string, port int) error
- func (p *Database) DisableReadonly() error
- func (p *Database) EnableReadonly() error
- func (p *Database) Hostname() (string, error)
- func (p *Database) IsReadonly() (bool, error)
- func (p *Database) PresentInHostgroups(host string) (bool, error)
- func (p *Database) PrimaryHost() (string, error)
- func (p *Database) ProxySQLInstanceStatus(host string) ([]string, error)
- func (p *Database) ReadVariable(variable string) (string, error)
- func (p *Database) ReplicationChannelSources(channelName string) ([]ReplicationChannelSource, error)
- func (p *Database) ReplicationStatus(ctx context.Context, channel string) (ReplicationStatus, error)
- func (p *Database) ShowReplicaStatus(ctx context.Context, channel string) (map[string]string, error)
- func (p *Database) StartReplication(replicaPass string, config ReplicationConfig, shouldGetMasterKey bool) error
- func (p *Database) StopAllReplication() error
- func (p *Database) StopReplication(name string) error
- func (p *Database) Version() (string, error)
- func (p *Database) WsrepLocalStateComment() (string, error)
- type ReplicationChannelSource
- type ReplicationConfig
- type ReplicationStatus
Constants ¶
View Source
const ( WriterHostgroup = "writer_hostgroup" ReaderHostgroup = "reader_hostgroup" )
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) AddReplicationSource ¶ added in v1.9.0
func (*Database) ChangeChannelPassword ¶ added in v1.10.0
func (*Database) CurrentReplicationChannels ¶ added in v1.9.0
func (*Database) DeleteReplicationSource ¶ added in v1.9.0
func (*Database) DisableReadonly ¶ added in v1.9.0
func (*Database) EnableReadonly ¶ added in v1.9.0
func (*Database) IsReadonly ¶ added in v1.9.0
func (*Database) PresentInHostgroups ¶ added in v1.11.0
func (*Database) PrimaryHost ¶
func (*Database) ProxySQLInstanceStatus ¶ added in v1.11.0
func (*Database) ReadVariable ¶ added in v1.14.0
func (*Database) ReplicationChannelSources ¶ added in v1.9.0
func (p *Database) ReplicationChannelSources(channelName string) ([]ReplicationChannelSource, error)
func (*Database) ReplicationStatus ¶ added in v1.9.0
func (*Database) ShowReplicaStatus ¶ added in v1.14.0
func (*Database) StartReplication ¶ added in v1.9.0
func (p *Database) StartReplication(replicaPass string, config ReplicationConfig, shouldGetMasterKey bool) error
func (*Database) StopAllReplication ¶ added in v1.9.0
func (*Database) StopReplication ¶ added in v1.9.0
func (*Database) WsrepLocalStateComment ¶
type ReplicationChannelSource ¶ added in v1.9.0
type ReplicationConfig ¶ added in v1.10.0
type ReplicationStatus ¶ added in v1.9.0
type ReplicationStatus int8
const ( ReplicationStatusActive ReplicationStatus = iota ReplicationStatusError ReplicationStatusNotInitiated )
Click to show internal directories.
Click to hide internal directories.