Documentation ¶
Index ¶
- Variables
- type DB
- type Entry
- type EntryData
- func (*EntryData) Descriptor() ([]byte, []int)deprecated
- func (x *EntryData) GetKey() string
- func (x *EntryData) GetTimestamp() int64
- func (x *EntryData) GetTombstone() bool
- func (x *EntryData) GetValue() []byte
- func (*EntryData) ProtoMessage()
- func (x *EntryData) ProtoReflect() protoreflect.Message
- func (x *EntryData) Reset()
- func (x *EntryData) String() string
- type KeyDir
- func (*KeyDir) Descriptor() ([]byte, []int)deprecated
- func (x *KeyDir) GetFileId() string
- func (x *KeyDir) GetOffset() int64
- func (x *KeyDir) GetTimestamp() int64
- func (*KeyDir) ProtoMessage()
- func (x *KeyDir) ProtoReflect() protoreflect.Message
- func (x *KeyDir) Reset()
- func (x *KeyDir) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("bitcask: not found") ErrChecksumMismatch = errors.New("bitcask: checksum mismatch") )
View Source
var File_db_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
type Entry ¶
type Entry struct { Crc uint64 `protobuf:"varint,1,opt,name=crc,proto3" json:"crc,omitempty"` EntryData *EntryData `protobuf:"bytes,2,opt,name=entry_data,json=entryData,proto3" json:"entry_data,omitempty"` // contains filtered or unexported fields }
func (*Entry) Descriptor
deprecated
func (*Entry) GetEntryData ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
type EntryData ¶
type EntryData struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Tombstone bool `protobuf:"varint,4,opt,name=tombstone,proto3" json:"tombstone,omitempty"` // contains filtered or unexported fields }
func (*EntryData) Descriptor
deprecated
func (*EntryData) GetTimestamp ¶
func (*EntryData) GetTombstone ¶
func (*EntryData) ProtoMessage ¶
func (*EntryData) ProtoMessage()
func (*EntryData) ProtoReflect ¶
func (x *EntryData) ProtoReflect() protoreflect.Message
type KeyDir ¶
type KeyDir struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` FileId string `protobuf:"bytes,2,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"` Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*KeyDir) Descriptor
deprecated
func (*KeyDir) GetTimestamp ¶
func (*KeyDir) ProtoMessage ¶
func (*KeyDir) ProtoMessage()
func (*KeyDir) ProtoReflect ¶
func (x *KeyDir) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.