Documentation ¶
Index ¶
- Variables
- func NewMessageIterator(s storage.Storage, opts *storage.IterOptions) storage.MessageIterator
- func PrependPrefix(prefix, key []byte) []byte
- type StorageCommons
- func (s *StorageCommons) ForEach(fn func(msg *sgproto.Message) error) error
- func (s *StorageCommons) ForEachWALEntry(min []byte, fn func(msg *sgproto.Message) error) error
- func (s *StorageCommons) ForRange(min, max sandflake.ID, fn func(msg *sgproto.Message) error) error
- func (s *StorageCommons) LastKVForPrefix(prefix, suffix []byte) []byte
- func (s *StorageCommons) LastKeyForPrefix(prefix []byte) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ViewPrefix = []byte("v") WalPrefix = []byte("w") )
Functions ¶
func NewMessageIterator ¶
func NewMessageIterator(s storage.Storage, opts *storage.IterOptions) storage.MessageIterator
func PrependPrefix ¶
Types ¶
type StorageCommons ¶
func (*StorageCommons) ForEach ¶
func (s *StorageCommons) ForEach(fn func(msg *sgproto.Message) error) error
func (*StorageCommons) ForEachWALEntry ¶ added in v0.1.7
func (*StorageCommons) LastKVForPrefix ¶
func (s *StorageCommons) LastKVForPrefix(prefix, suffix []byte) []byte
func (*StorageCommons) LastKeyForPrefix ¶
func (s *StorageCommons) LastKeyForPrefix(prefix []byte) []byte
Click to show internal directories.
Click to hide internal directories.