Documentation
¶
Index ¶
- Constants
- Variables
- type BinLog
- func (bin *BinLog) AddRequest(req *Request)
- func (bin *BinLog) AsMaster()
- func (bin *BinLog) AsSlave()
- func (bin *BinLog) Close()
- func (bin *BinLog) Flush()
- func (bin *BinLog) GetBinFileName(fileIdx uint64) string
- func (bin *BinLog) GetLogSeqChanLen() (uint64, int)
- func (bin *BinLog) GetMasterSeq() (masterSeq uint64, valid bool)
- func (bin *BinLog) GetSeqFileName(fileIdx uint64) string
- func (bin *BinLog) RegisterMonitor(m Monitor)
- func (bin *BinLog) RemoveMonitor(m Monitor)
- type Monitor
- type Reader
- type Request
Constants ¶
View Source
const (
MinNormalSeq = uint64(1000000000000000000)
)
Variables ¶
View Source
var ( ErrLogMissing = errors.New("log file missing") ErrUnexpected = errors.New("unexpected binlog reader error") )
Functions ¶
This section is empty.
Types ¶
type BinLog ¶
type BinLog struct {
// contains filtered or unexported fields
}
func (*BinLog) AddRequest ¶
func (*BinLog) GetBinFileName ¶
func (*BinLog) GetLogSeqChanLen ¶
func (*BinLog) GetMasterSeq ¶
Only for master/slave mode
func (*BinLog) GetSeqFileName ¶
func (*BinLog) RegisterMonitor ¶
func (*BinLog) RemoveMonitor ¶
type Monitor ¶
type Monitor interface {
// NewLogComming tells the monitor there is new binlog written.
NewLogComming()
}
Monitor is a BinLog monitor.
Click to show internal directories.
Click to hide internal directories.