package
0.6.0
Repository: https://github.com/distributedio/titan.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package zlistproto is a generated protocol buffer package.

# Functions

BatchGetValues issues batch requests to get values.
DataKey builds a datakey from a redis key.
DecodeFloat64 decode the float64 object from binary.
DecodeHashMeta decode meta data into meta field.
DecodeInt64 decode the int64 object from binary.
DecodeObject decode the object from binary.
EncodeFloat64 encode the float64 object to binary.
EncodeHashMeta encodes meta data into byte slice.
EncodeInt64 encode the int64 object to binary.
EncodeObject encode the object to binary.
GetHash returns a hash object, create new one if nonexists.
GetKv returns a Kv object.
GetList returns a List object, it creates a new one if the key does not exist, when UseZip() is set, it will create a ziplist instead of a linklist.
GetLList returns a list.
GetSet returns a set object, create new one if nonexists.
GetString return string object , if key is exist , object load meta otherwise object is null if key is not exist and err is not found otherwise return err.
GetZList generate List objectm with auto reation, if zip is true, zipped list will be choose.
GetZSet returns a sorted set, create new one if don't exists.
IsExpired judge object expire through now.
MetaKey build to metakey from a redis key.
NewLList creates a new list.
NewString create new string object.
NewZList create new list object ,the key is not checked for presence.
Now returns the current unix nano timestamp.
Open a storage instance.
PutZList should be called after ZList created.
RemoveRepByMap filters duplicate elements through the map's unique primary key feature.
RemoveZTKey remove an metakey from ZT.
StartExpire get leader from db.
StartGC start gc1.获取leader许可2.leader 执行清理任务.
StartTiKVGC start tikv gcwork.
StartZT start ZT fill in the queue(channel), and start the worker to consume.
UseZip will create a ziplist if set when the key is missing.
UUID allocates an unique object ID.
UUIDString returns canonical string representation of UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
ZSetScorePrefix builds a score key prefix from a redis key.

# Constants

Encoding values, see https://github.com/antirez/redis/blob/unstable/src/server.h#L581.
Encoding values, see https://github.com/antirez/redis/blob/unstable/src/server.h#L581.
Encoding values, see https://github.com/antirez/redis/blob/unstable/src/server.h#L581.
Encoding values, see https://github.com/antirez/redis/blob/unstable/src/server.h#L581.
ObjectEncodingLength indecate current object marshaled length.
Encoding values, see https://github.com/antirez/redis/blob/unstable/src/server.h#L581.
Encoding values, see https://github.com/antirez/redis/blob/unstable/src/server.h#L581.
Encoding values, see https://github.com/antirez/redis/blob/unstable/src/server.h#L581.
Encoding values, see https://github.com/antirez/redis/blob/unstable/src/server.h#L581.
Encoding values, see https://github.com/antirez/redis/blob/unstable/src/server.h#L581.
Encoding values, see https://github.com/antirez/redis/blob/unstable/src/server.h#L581.
Object types, see https://github.com/antirez/redis/blob/unstable/src/server.h#L461.
Object types, see https://github.com/antirez/redis/blob/unstable/src/server.h#L461.
Object types, see https://github.com/antirez/redis/blob/unstable/src/server.h#L461.
Object types, see https://github.com/antirez/redis/blob/unstable/src/server.h#L461.
Object types, see https://github.com/antirez/redis/blob/unstable/src/server.h#L461.
Separator of the key segment.

# Variables

ErrEncodingMismatch object encoding type.
ErrInteger valeu is not interge.
ErrInvalidLength data length is invalid for unmarshaler".
ErrKeyNotFound key not exist.
ErrOutOfRange index/offset out of range.
ErrPrecision list index reach precision limitatin.
ErrSetNilValue means the value corresponding to key is a non-zero value.
ErrStorageRetry storage err and try again later.
ErrTypeMismatch indicates object type of key is not as expect.
IsConflictError return true if the error is conflict.
IsErrNotFound returns true if the key is not found, otherwise return false.
IsRetryableError returns true if the error is temporary and can be retried.
No description provided by the author
SetNilValue is the value set to a tikv key for tikv do not support a real empty value.

# Structs

DB is a redis compatible data structure storage.
Hash implements the hashtable.
HashMeta is the meta data of the hashtable.
Kv supplies key releated operations.
Lease is an object that can be associated with other objects those can share the same ttl of the lease.
LList is a distributed object that works like a double link list {Object schema}:{index} -> value.
LListMeta keeps all meta info of a list object after marshaled, listmeta raw data should organized like below |----object 34----| |------len 8------| |----linedx 8-----| |----rindex 8-----|.
No description provided by the author
Object meta schema Layout {DB}:{TAG}:{Key} DB [0-255] Key Usersapce key TAG M(Meta), D(Data) Object data schema Layout: {DB}:{TAG}:{ID}:{Others} ID Object ID, ID is not used for meta String schema (associated value with meta) Layout: {DB}:M:{key}.
RedisStore wraps store.Storage.
Set implements the set data structure.
SetIter is the struct of Iterator and prefix.
SetMeta is the meta data of the set.
String object operate tikv.
StringMeta string meta msg.
Transaction supplies transaction for data structures.
ZList ZListMeta defined zip list, with only objectMeta info.
ZSet implements the the sorted set.
ZSetMeta is the meta data of the sorted set.

# Interfaces

List defines the list interface.

# Type aliases

DBID is the redis database ID.
Iterator store.Iterator.
ListOption customize how to get a list.
ObjectEncoding is the encoding type of an object.
ObjectType is the type of a data structure.