Documentation
¶
Index ¶
- 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) PrimaryHost() (string, error)
- func (p *Database) ReplicationChannelSources(channelName string) ([]ReplicationChannelSource, error)
- func (p *Database) ReplicationStatus(channel string) (ReplicationStatus, error)
- func (p *Database) StartReplication(replicaPass string, config ReplicationConfig) error
- func (p *Database) Status(host, ip string) ([]string, 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 ¶
This section is empty.
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) PrimaryHost ¶
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 (p *Database) ReplicationStatus(channel string) (ReplicationStatus, error)
func (*Database) StartReplication ¶ added in v1.9.0
func (p *Database) StartReplication(replicaPass string, config ReplicationConfig) 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 ReplicationConfig struct { Source ReplicationChannelSource SourceRetryCount uint SourceConnectRetry uint }
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.