Documentation ¶
Index ¶
Constants ¶
View Source
const DeletePrefixEntryProtoTag = 0x12
View Source
const KVEntryKeyProtoTag = 0x0a
View Source
const KVEntryProtoTag = 0x0a
View Source
const KVEntryValueProtoTag = 0x12
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Marshaller ¶
type Marshaller interface { Unmarshal(in []byte) (*StoreData, uint64, error) Marshal(data *StoreData) ([]byte, error) }
func Default ¶
func Default() Marshaller
type ProtoingFast ¶
type ProtoingFast struct{}
ProtoingFast is a custom proto marshaller, that will marshal and unmarshall the storeData into a predefined proto struct (see below). The motivation here is that we want to write a proto message, making it readable by other tool with the appropriate message, but want to gain the marshal performance of a custom binary library
message StoreData { map<string, bytes> kv = 1; repeated string delete_prefixes = 2; }
Click to show internal directories.
Click to hide internal directories.