Documentation ¶
Index ¶
- Constants
- Variables
- type BackEnder
- type Conf
- type DB
- func (db *DB) AE() bool
- func (db *DB) Close()
- func (db *DB) Del(rec *acproto.ACPY2MapDatum) error
- func (db *DB) DelExpired(key string, shard uint32, exp uint64)
- func (db *DB) DelInternal(sub string, key string)
- func (db *DB) Distrib(loc *soty.Loc, req *acproto.ACPY2DistRequest, onDone func(int))
- func (db *DB) DistribLocal(loc *soty.Loc, req *acproto.ACPY2DistRequest, onDone func(int))
- func (db *DB) ExGet(key string) ([]byte, bool)
- func (db *DB) ExPut(key string, val []byte)
- func (db *DB) Get(rec *acproto.ACPY2MapDatum) (bool, error)
- func (db *DB) GetInternal(sub string, key string) ([]byte, bool)
- func (db *DB) GetMerkle(level int, treeid uint16, ver uint64) []*merkle.Result
- func (db *DB) GetRange(req *acproto.ACPY2GetRange, res *acproto.ACPY2GetSet) (bool, error)
- func (db *DB) GetRingConf(dc string) *acproto.ACPY2RingConfReply
- func (db *DB) IterVersion(startVer uint64, endVer uint64, lambda func(string, uint64, uint32) bool)
- func (db *DB) MDel(key string)
- func (db *DB) MGet(key string) ([]byte, bool)
- func (db *DB) MPut(key string, val []byte)
- func (db *DB) PeerUpdate(id string, isup bool, iscf bool, first bool, pd *kibitz.Export, ...)
- func (db *DB) Put(rec *acproto.ACPY2MapDatum) (int, *soty.Loc)
- func (db *DB) Range(sub string, start string, end string, f func(string, []byte) bool)
- func (db *DB) Redirect(rec *acproto.ACPY2MapDatum)
- func (db *DB) Repartition(loc *soty.Loc, ver uint64) (bool, uint64)
- func (db *DB) RingIsStable() bool
- func (db *DB) SetInternal(sub string, key string, val []byte)
- type Record
- func (*Record) Descriptor() ([]byte, []int)
- func (this *Record) Equal(that interface{}) bool
- func (m *Record) GetExpire() uint64
- func (m *Record) GetFlags() uint32
- func (m *Record) GetShard() uint32
- func (m *Record) GetValue() []byte
- func (m *Record) GetVersion() uint64
- func (this *Record) GoString() string
- func (m *Record) Marshal() (dAtA []byte, err error)
- func (m *Record) MarshalTo(dAtA []byte) (int, error)
- func (m *Record) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Record) ProtoMessage()
- func (m *Record) Reset()
- func (m *Record) Size() (n int)
- func (this *Record) String() string
- func (m *Record) Unmarshal(dAtA []byte) error
- func (m *Record) XXX_DiscardUnknown()
- func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Record) XXX_Merge(src proto.Message)
- func (m *Record) XXX_Size() int
- func (m *Record) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( DATASUB = "d" NDLOCK = 2053 CACHESIZE = 1000 )
View Source
const (
FLAG_ENCRYPTED_V1 = (1 << 0)
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) DelExpired ¶
verify the expiration + delete
func (*DB) DelInternal ¶
func (*DB) DistribLocal ¶
func (*DB) GetRingConf ¶
func (*DB) IterVersion ¶
func (*DB) PeerUpdate ¶
func (*DB) RingIsStable ¶
type Record ¶
type Record struct { Flags uint32 `protobuf:"varint,1,opt,name=flags,proto3" json:"flags,omitempty"` Shard uint32 `protobuf:"varint,2,opt,name=shard,proto3" json:"shard,omitempty"` Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` Expire uint64 `protobuf:"varint,4,opt,name=expire,proto3" json:"expire,omitempty"` Value []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` }
func (*Record) Descriptor ¶
func (*Record) GetVersion ¶
func (*Record) MarshalToSizedBuffer ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) XXX_DiscardUnknown ¶
func (m *Record) XXX_DiscardUnknown()
func (*Record) XXX_Marshal ¶
func (*Record) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.