Documentation ¶
Index ¶
- type BinlogInformation
- type BoltDBStore
- func (store *BoltDBStore) Close()
- func (store *BoltDBStore) Commit() error
- func (store *BoltDBStore) Get(key []byte) ([]byte, error)
- func (store *BoltDBStore) GetBinlogPosition() (*BinlogInformation, error)
- func (store *BoltDBStore) GetFromBucket(bucket []byte, key []byte) ([]byte, error)
- func (store *BoltDBStore) IsStarted() bool
- func (store *BoltDBStore) Open(filename string) error
- func (store *BoltDBStore) Set(key []byte, value []byte) error
- func (store *BoltDBStore) SetBinlogPosition(binlogInfo *BinlogInformation) error
- func (store *BoltDBStore) SetFromBucket(bucket []byte, key []byte, value []byte) error
- type LMDBStore
- func (store *LMDBStore) Commit() error
- func (store *LMDBStore) Get(key []byte) ([]byte, error)
- func (store *LMDBStore) GetBinlogPosition() (*BinlogInformation, error)
- func (store *LMDBStore) IsStarted() bool
- func (store *LMDBStore) Open(filename string) error
- func (store *LMDBStore) Set(key []byte, value []byte) error
- func (store *LMDBStore) SetBinlogPosition(binlogInfo *BinlogInformation) error
- type MapStore
- func (store *MapStore) Close()
- func (store *MapStore) Commit() error
- func (store *MapStore) Get(key []byte) ([]byte, error)
- func (store *MapStore) GetBinlogPosition() (*BinlogInformation, error)
- func (store *MapStore) IsStarted() bool
- func (store *MapStore) Open(filename string) error
- func (store *MapStore) Set(key []byte, value []byte) error
- func (store *MapStore) SetBinlogPosition(binlogInfo *BinlogInformation) error
- type NoopStore
- func (store *NoopStore) Close()
- func (store *NoopStore) Commit() error
- func (store *NoopStore) Get(key []byte) ([]byte, error)
- func (store *NoopStore) GetBinlogPosition() (*BinlogInformation, error)
- func (store *NoopStore) IsStarted() bool
- func (store *NoopStore) Open(filename string) error
- func (store *NoopStore) Set(key []byte, value []byte) error
- func (store *NoopStore) SetBinlogPosition(binlogInfo *BinlogInformation) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinlogInformation ¶
BinlogInformation Represents the information about the MySQL binlog.
type BoltDBStore ¶
type BoltDBStore struct {
// contains filtered or unexported fields
}
BoltDBStore Represents an instance of the BoltDB storage.
func (*BoltDBStore) Commit ¶
func (store *BoltDBStore) Commit() error
Commit Commits the current transaction.
func (*BoltDBStore) Get ¶
func (store *BoltDBStore) Get(key []byte) ([]byte, error)
Get Gets the value associated with the specified key.
func (*BoltDBStore) GetBinlogPosition ¶
func (store *BoltDBStore) GetBinlogPosition() (*BinlogInformation, error)
GetBinlogPosition Returns the persisted binlog position.
func (*BoltDBStore) GetFromBucket ¶
func (store *BoltDBStore) GetFromBucket(bucket []byte, key []byte) ([]byte, error)
GetFromBucket Gets the value associated with the specified key from the specified bucket.
func (*BoltDBStore) IsStarted ¶
func (store *BoltDBStore) IsStarted() bool
IsStarted Returns whether the BoltDB store is started.
func (*BoltDBStore) Open ¶
func (store *BoltDBStore) Open(filename string) error
Open Opens the disk storage.
func (*BoltDBStore) Set ¶
func (store *BoltDBStore) Set(key []byte, value []byte) error
Set Sets the specified value associated with the specified key.
func (*BoltDBStore) SetBinlogPosition ¶
func (store *BoltDBStore) SetBinlogPosition(binlogInfo *BinlogInformation) error
SetBinlogPosition Sets and persists the current binlog position.
func (*BoltDBStore) SetFromBucket ¶
func (store *BoltDBStore) SetFromBucket(bucket []byte, key []byte, value []byte) error
SetFromBucket Sets the specified value associated with the specified key in the specified bucket.
type LMDBStore ¶
type LMDBStore struct {
// contains filtered or unexported fields
}
LMDBStore Represents an instance of the LMDB storage engine.
func (*LMDBStore) GetBinlogPosition ¶
func (store *LMDBStore) GetBinlogPosition() (*BinlogInformation, error)
GetBinlogPosition Returns the persisted binlog position.
func (*LMDBStore) SetBinlogPosition ¶
func (store *LMDBStore) SetBinlogPosition(binlogInfo *BinlogInformation) error
SetBinlogPosition Sets and persists the current binlog position.
type MapStore ¶
type MapStore struct {
// contains filtered or unexported fields
}
MapStore Represents an instance of the in-memory storage.
func (*MapStore) GetBinlogPosition ¶
func (store *MapStore) GetBinlogPosition() (*BinlogInformation, error)
GetBinlogPosition Returns the persisted binlog position.
func (*MapStore) SetBinlogPosition ¶
func (store *MapStore) SetBinlogPosition(binlogInfo *BinlogInformation) error
SetBinlogPosition Sets and persists the current binlog position.
type NoopStore ¶
type NoopStore struct {
// contains filtered or unexported fields
}
NoopStore Represents a store instance that does nothing.
func (*NoopStore) GetBinlogPosition ¶
func (store *NoopStore) GetBinlogPosition() (*BinlogInformation, error)
GetBinlogPosition Returns the persisted binlog position.
func (*NoopStore) SetBinlogPosition ¶
func (store *NoopStore) SetBinlogPosition(binlogInfo *BinlogInformation) error
SetBinlogPosition Sets and persists the current binlog position.
type Store ¶
type Store interface { IsStarted() bool Open(filename string) error GetBinlogPosition() (*BinlogInformation, error) SetBinlogPosition(binlogInfo *BinlogInformation) error Get(key []byte) ([]byte, error) Set(key []byte, value []byte) error Commit() error }
Store Represents the storage API's.