scommons

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2017 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ViewPrefix = []byte("v")
	WalPrefix  = []byte("w")
)

Functions

func PrependPrefix

func PrependPrefix(prefix, key []byte) []byte

Types

type StorageCommons

type StorageCommons struct {
	storage.Storage
}

func (*StorageCommons) ForEach

func (s *StorageCommons) ForEach(fn func(msg *sgproto.Message) error) error

func (*StorageCommons) ForEachWALEntry added in v0.1.7

func (s *StorageCommons) ForEachWALEntry(min []byte, fn func(msg *sgproto.Message) error) error

func (*StorageCommons) ForRange

func (s *StorageCommons) ForRange(min, max sandflake.ID, fn func(msg *sgproto.Message) error) error

func (*StorageCommons) LastKVForPrefix

func (s *StorageCommons) LastKVForPrefix(prefix, suffix []byte) []byte

func (*StorageCommons) LastKeyForPrefix

func (s *StorageCommons) LastKeyForPrefix(prefix []byte) []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL