Documentation ¶
Index ¶
- type Config
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) DisableChecksum() error
- func (c *Conn) GetVar(name string) (string, error)
- func (c *Conn) ReadPacket(ctx context.Context) ([]byte, error)
- func (c *Conn) RegisterSlave() error
- func (c *Conn) SetVar(name, val string) error
- func (c *Conn) StartBinlogDump() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config contains slave connection configuration. It is passed to master upon registration.
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn is a slave connection used to issue a binlog dump command.
func (*Conn) DisableChecksum ¶
DisableChecksum disables CRC32 checksums for this connection.
func (*Conn) ReadPacket ¶
ReadPacket reads next packet from the server and processes the first status byte.
func (*Conn) RegisterSlave ¶
RegisterSlave issues a REGISTER_SLAVE command to master. Spec: https://dev.mysql.com/doc/internals/en/com-register-slave.html
func (*Conn) StartBinlogDump ¶
StartBinlogDump issues a BINLOG_DUMP command to master. Spec: https://dev.mysql.com/doc/internals/en/com-binlog-dump.html TODO: https://dev.mysql.com/doc/internals/en/com-binlog-dump-gtid.html
Click to show internal directories.
Click to hide internal directories.