Documentation ¶
Index ¶
- Constants
- Variables
- type Delayer
- type Options
- func (opts *Options) Valid() bool
- func (o *Options) WithDelayer(delayer Delayer) *Options
- func (o *Options) WithFollowerPassword(followerPassword string) *Options
- func (o *Options) WithFollowerUsername(followerUsername string) *Options
- func (o *Options) WithMasterAddress(masterAddress string) *Options
- func (o *Options) WithMasterDatabase(masterDatabase string) *Options
- func (o *Options) WithMasterPort(masterPort int) *Options
- func (o *Options) WithStreamChunkSize(streamChunkSize int) *Options
- type TxReplicator
Constants ¶
View Source
const DefaultChunkSize int = 64 * 1024 // 64 * 1024 64 KiB
Variables ¶
View Source
var ErrAlreadyRunning = errors.New("already running")
View Source
var ErrAlreadyStopped = errors.New("already stopped")
View Source
var ErrIllegalArguments = errors.New("illegal arguments")
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func DefaultOptions ¶
func DefaultOptions() *Options
func (*Options) WithDelayer ¶
WithDelayer sets delayer used to pause re-attempts
func (*Options) WithFollowerPassword ¶
WithFollowerPassword sets password used for replication
func (*Options) WithFollowerUsername ¶
WithFollowerUsername sets username used for replication
func (*Options) WithMasterAddress ¶
WithMasterAddress sets the source database address
func (*Options) WithMasterDatabase ¶
WithMasterDatabase sets the source database name
func (*Options) WithMasterPort ¶
WithMasterPort sets the source database port
func (*Options) WithStreamChunkSize ¶
WithStreamChunkSize sets streaming chunk size
type TxReplicator ¶
type TxReplicator struct {
// contains filtered or unexported fields
}
func NewTxReplicator ¶
func (*TxReplicator) Start ¶
func (txr *TxReplicator) Start() error
func (*TxReplicator) Stop ¶
func (txr *TxReplicator) Stop() error
Click to show internal directories.
Click to hide internal directories.