Documentation
¶
Index ¶
Constants ¶
View Source
const ( FileStorageType = 1 RedisStorageType = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilePosStorage ¶
type FilePosStorage struct {
// contains filtered or unexported fields
}
func NewFilePosStorage ¶
func NewFilePosStorage(filepath string) (*FilePosStorage, error)
func (*FilePosStorage) Close ¶
func (s *FilePosStorage) Close()
func (*FilePosStorage) Get ¶
func (s *FilePosStorage) Get() (*Position, error)
func (*FilePosStorage) Rewrite ¶
func (s *FilePosStorage) Rewrite(pos *Position) error
type IPosStorage ¶
func NewPosStorage ¶
func NewPosStorage(storageCfg PosStorageConfig) (IPosStorage, error)
type PosStorageConfig ¶
type RedisPosStorage ¶
type RedisPosStorage struct {
// contains filtered or unexported fields
}
func NewRedisPosStorage ¶
func NewRedisPosStorage(uri string) (*RedisPosStorage, error)
func (*RedisPosStorage) Close ¶
func (s *RedisPosStorage) Close()
func (*RedisPosStorage) Get ¶
func (s *RedisPosStorage) Get() (*Position, error)
func (*RedisPosStorage) Rewrite ¶
func (s *RedisPosStorage) Rewrite(pos *Position) error
Click to show internal directories.
Click to hide internal directories.