Documentation ¶
Index ¶
Constants ¶
View Source
const (
// KeyPrefixSeparator is used to separate prefix and key
KeyPrefixSeparator = ";;;"
)
Variables ¶
This section is empty.
Functions ¶
func MakePrefix ¶
MakePrefix creates a prefix string
func SplitPrefix ¶
SplitPrefix splits joined prefixes into their individual parts
Types ¶
type NoopLogger ¶
type NoopLogger struct{}
func (*NoopLogger) Debugf ¶
func (*NoopLogger) Debugf(string, ...interface{})
func (*NoopLogger) Errorf ¶
func (*NoopLogger) Errorf(string, ...interface{})
func (*NoopLogger) Infof ¶
func (*NoopLogger) Infof(string, ...interface{})
func (*NoopLogger) Warningf ¶
func (*NoopLogger) Warningf(string, ...interface{})
type Record ¶
type Record struct { Key []byte `json:"key"` Value []byte `json:"value"` Prefix []byte `json:"prefix"` }
Record represents an item in the database
func NewFromKeyValue ¶
NewFromKeyValue takes a key and creates a Record
func NewRecord ¶
NewRecord creates a key value object. The prefixes provided is joined together and prepended to the key before insertion.
Click to show internal directories.
Click to hide internal directories.