Documentation ¶
Index ¶
- Variables
- type Checksum
- func (*Checksum) Descriptor() ([]byte, []int)
- func (m *Checksum) GetAlgo() Checksum_Algorithm
- func (m *Checksum) GetSum() uint64
- func (m *Checksum) Marshal() (dAtA []byte, err error)
- func (m *Checksum) MarshalTo(dAtA []byte) (int, error)
- func (m *Checksum) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Checksum) ProtoMessage()
- func (m *Checksum) Reset()
- func (m *Checksum) Size() (n int)
- func (m *Checksum) String() string
- func (m *Checksum) Unmarshal(dAtA []byte) error
- func (m *Checksum) XXX_DiscardUnknown()
- func (m *Checksum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Checksum) XXX_Merge(src proto.Message)
- func (m *Checksum) XXX_Size() int
- func (m *Checksum) XXX_Unmarshal(b []byte) error
- type Checksum_Algorithm
- type DataKey
- func (*DataKey) Descriptor() ([]byte, []int)
- func (m *DataKey) GetCreatedAt() int64
- func (m *DataKey) GetData() []byte
- func (m *DataKey) GetIv() []byte
- func (m *DataKey) GetKeyId() uint64
- func (m *DataKey) Marshal() (dAtA []byte, err error)
- func (m *DataKey) MarshalTo(dAtA []byte) (int, error)
- func (m *DataKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DataKey) ProtoMessage()
- func (m *DataKey) Reset()
- func (m *DataKey) Size() (n int)
- func (m *DataKey) String() string
- func (m *DataKey) Unmarshal(dAtA []byte) error
- func (m *DataKey) XXX_DiscardUnknown()
- func (m *DataKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataKey) XXX_Merge(src proto.Message)
- func (m *DataKey) XXX_Size() int
- func (m *DataKey) XXX_Unmarshal(b []byte) error
- type EncryptionAlgo
- type KV
- func (*KV) Descriptor() ([]byte, []int)
- func (m *KV) GetExpiresAt() uint64
- func (m *KV) GetKey() []byte
- func (m *KV) GetMeta() []byte
- func (m *KV) GetStreamDone() bool
- func (m *KV) GetStreamId() uint32
- func (m *KV) GetUserMeta() []byte
- func (m *KV) GetValue() []byte
- func (m *KV) GetVersion() uint64
- func (m *KV) Marshal() (dAtA []byte, err error)
- func (m *KV) MarshalTo(dAtA []byte) (int, error)
- func (m *KV) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KV) ProtoMessage()
- func (m *KV) Reset()
- func (m *KV) Size() (n int)
- func (m *KV) String() string
- func (m *KV) Unmarshal(dAtA []byte) error
- func (m *KV) XXX_DiscardUnknown()
- func (m *KV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KV) XXX_Merge(src proto.Message)
- func (m *KV) XXX_Size() int
- func (m *KV) XXX_Unmarshal(b []byte) error
- type KVList
- func (*KVList) Descriptor() ([]byte, []int)
- func (m *KVList) GetAllocRef() uint64
- func (m *KVList) GetKv() []*KV
- func (m *KVList) Marshal() (dAtA []byte, err error)
- func (m *KVList) MarshalTo(dAtA []byte) (int, error)
- func (m *KVList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KVList) ProtoMessage()
- func (m *KVList) Reset()
- func (m *KVList) Size() (n int)
- func (m *KVList) String() string
- func (m *KVList) Unmarshal(dAtA []byte) error
- func (m *KVList) XXX_DiscardUnknown()
- func (m *KVList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KVList) XXX_Merge(src proto.Message)
- func (m *KVList) XXX_Size() int
- func (m *KVList) XXX_Unmarshal(b []byte) error
- type ManifestChange
- func (*ManifestChange) Descriptor() ([]byte, []int)
- func (m *ManifestChange) GetCompression() uint32
- func (m *ManifestChange) GetEncryptionAlgo() EncryptionAlgo
- func (m *ManifestChange) GetId() uint64
- func (m *ManifestChange) GetKeyId() uint64
- func (m *ManifestChange) GetLevel() uint32
- func (m *ManifestChange) GetOp() ManifestChange_Operation
- func (m *ManifestChange) Marshal() (dAtA []byte, err error)
- func (m *ManifestChange) MarshalTo(dAtA []byte) (int, error)
- func (m *ManifestChange) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ManifestChange) ProtoMessage()
- func (m *ManifestChange) Reset()
- func (m *ManifestChange) Size() (n int)
- func (m *ManifestChange) String() string
- func (m *ManifestChange) Unmarshal(dAtA []byte) error
- func (m *ManifestChange) XXX_DiscardUnknown()
- func (m *ManifestChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ManifestChange) XXX_Merge(src proto.Message)
- func (m *ManifestChange) XXX_Size() int
- func (m *ManifestChange) XXX_Unmarshal(b []byte) error
- type ManifestChangeSet
- func (*ManifestChangeSet) Descriptor() ([]byte, []int)
- func (m *ManifestChangeSet) GetChanges() []*ManifestChange
- func (m *ManifestChangeSet) Marshal() (dAtA []byte, err error)
- func (m *ManifestChangeSet) MarshalTo(dAtA []byte) (int, error)
- func (m *ManifestChangeSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ManifestChangeSet) ProtoMessage()
- func (m *ManifestChangeSet) Reset()
- func (m *ManifestChangeSet) Size() (n int)
- func (m *ManifestChangeSet) String() string
- func (m *ManifestChangeSet) Unmarshal(dAtA []byte) error
- func (m *ManifestChangeSet) XXX_DiscardUnknown()
- func (m *ManifestChangeSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ManifestChangeSet) XXX_Merge(src proto.Message)
- func (m *ManifestChangeSet) XXX_Size() int
- func (m *ManifestChangeSet) XXX_Unmarshal(b []byte) error
- type ManifestChange_Operation
- type Match
- func (*Match) Descriptor() ([]byte, []int)
- func (m *Match) GetIgnoreBytes() string
- func (m *Match) GetPrefix() []byte
- func (m *Match) Marshal() (dAtA []byte, err error)
- func (m *Match) MarshalTo(dAtA []byte) (int, error)
- func (m *Match) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Match) ProtoMessage()
- func (m *Match) Reset()
- func (m *Match) Size() (n int)
- func (m *Match) String() string
- func (m *Match) Unmarshal(dAtA []byte) error
- func (m *Match) XXX_DiscardUnknown()
- func (m *Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Match) XXX_Merge(src proto.Message)
- func (m *Match) XXX_Size() int
- func (m *Match) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthBadgerpb4 = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBadgerpb4 = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBadgerpb4 = fmt.Errorf("proto: unexpected end of group") )
View Source
var Checksum_Algorithm_name = map[int32]string{
0: "CRC32C",
1: "XXHash64",
}
View Source
var Checksum_Algorithm_value = map[string]int32{
"CRC32C": 0,
"XXHash64": 1,
}
View Source
var EncryptionAlgo_name = map[int32]string{
0: "aes",
}
View Source
var EncryptionAlgo_value = map[string]int32{
"aes": 0,
}
View Source
var ManifestChange_Operation_name = map[int32]string{
0: "CREATE",
1: "DELETE",
}
View Source
var ManifestChange_Operation_value = map[string]int32{
"CREATE": 0,
"DELETE": 1,
}
Functions ¶
This section is empty.
Types ¶
type Checksum ¶
type Checksum struct { Algo Checksum_Algorithm `protobuf:"varint,1,opt,name=algo,proto3,enum=badgerpb4.Checksum_Algorithm" json:"algo,omitempty"` Sum uint64 `protobuf:"varint,2,opt,name=sum,proto3" json:"sum,omitempty"` }
func (*Checksum) Descriptor ¶
func (*Checksum) GetAlgo ¶
func (m *Checksum) GetAlgo() Checksum_Algorithm
func (*Checksum) MarshalToSizedBuffer ¶
func (*Checksum) ProtoMessage ¶
func (*Checksum) ProtoMessage()
func (*Checksum) XXX_DiscardUnknown ¶
func (m *Checksum) XXX_DiscardUnknown()
func (*Checksum) XXX_Marshal ¶
func (*Checksum) XXX_Unmarshal ¶
type Checksum_Algorithm ¶
type Checksum_Algorithm int32
const ( Checksum_CRC32C Checksum_Algorithm = 0 Checksum_XXHash64 Checksum_Algorithm = 1 )
func (Checksum_Algorithm) EnumDescriptor ¶
func (Checksum_Algorithm) EnumDescriptor() ([]byte, []int)
func (Checksum_Algorithm) String ¶
func (x Checksum_Algorithm) String() string
type DataKey ¶
type DataKey struct { KeyId uint64 `protobuf:"varint,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Iv []byte `protobuf:"bytes,3,opt,name=iv,proto3" json:"iv,omitempty"` CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` }
func (*DataKey) Descriptor ¶
func (*DataKey) GetCreatedAt ¶
func (*DataKey) MarshalToSizedBuffer ¶
func (*DataKey) ProtoMessage ¶
func (*DataKey) ProtoMessage()
func (*DataKey) XXX_DiscardUnknown ¶
func (m *DataKey) XXX_DiscardUnknown()
func (*DataKey) XXX_Marshal ¶
func (*DataKey) XXX_Unmarshal ¶
type EncryptionAlgo ¶
type EncryptionAlgo int32
const (
EncryptionAlgo_aes EncryptionAlgo = 0
)
func (EncryptionAlgo) EnumDescriptor ¶
func (EncryptionAlgo) EnumDescriptor() ([]byte, []int)
func (EncryptionAlgo) String ¶
func (x EncryptionAlgo) String() string
type KV ¶
type KV struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` UserMeta []byte `protobuf:"bytes,3,opt,name=user_meta,json=userMeta,proto3" json:"user_meta,omitempty"` Version uint64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` ExpiresAt uint64 `protobuf:"varint,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` Meta []byte `protobuf:"bytes,6,opt,name=meta,proto3" json:"meta,omitempty"` // Stream id is used to identify which stream the KV came from. StreamId uint32 `protobuf:"varint,10,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` // Stream done is used to indicate end of stream. StreamDone bool `protobuf:"varint,11,opt,name=stream_done,json=streamDone,proto3" json:"stream_done,omitempty"` }
func (*KV) Descriptor ¶
func (*KV) GetExpiresAt ¶
func (*KV) GetStreamDone ¶
func (*KV) GetStreamId ¶
func (*KV) GetUserMeta ¶
func (*KV) GetVersion ¶
func (*KV) ProtoMessage ¶
func (*KV) ProtoMessage()
func (*KV) XXX_DiscardUnknown ¶
func (m *KV) XXX_DiscardUnknown()
func (*KV) XXX_Unmarshal ¶
type KVList ¶
type KVList struct { Kv []*KV `protobuf:"bytes,1,rep,name=kv,proto3" json:"kv,omitempty"` // alloc_ref used internally for memory management. AllocRef uint64 `protobuf:"varint,10,opt,name=alloc_ref,json=allocRef,proto3" json:"alloc_ref,omitempty"` }
func (*KVList) Descriptor ¶
func (*KVList) GetAllocRef ¶
func (*KVList) MarshalToSizedBuffer ¶
func (*KVList) ProtoMessage ¶
func (*KVList) ProtoMessage()
func (*KVList) XXX_DiscardUnknown ¶
func (m *KVList) XXX_DiscardUnknown()
func (*KVList) XXX_Marshal ¶
func (*KVList) XXX_Unmarshal ¶
type ManifestChange ¶
type ManifestChange struct { Id uint64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Op ManifestChange_Operation `protobuf:"varint,2,opt,name=Op,proto3,enum=badgerpb4.ManifestChange_Operation" json:"Op,omitempty"` Level uint32 `protobuf:"varint,3,opt,name=Level,proto3" json:"Level,omitempty"` KeyId uint64 `protobuf:"varint,4,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` EncryptionAlgo EncryptionAlgo `` /* 134-byte string literal not displayed */ Compression uint32 `protobuf:"varint,6,opt,name=compression,proto3" json:"compression,omitempty"` }
func (*ManifestChange) Descriptor ¶
func (*ManifestChange) Descriptor() ([]byte, []int)
func (*ManifestChange) GetCompression ¶
func (m *ManifestChange) GetCompression() uint32
func (*ManifestChange) GetEncryptionAlgo ¶
func (m *ManifestChange) GetEncryptionAlgo() EncryptionAlgo
func (*ManifestChange) GetId ¶
func (m *ManifestChange) GetId() uint64
func (*ManifestChange) GetKeyId ¶
func (m *ManifestChange) GetKeyId() uint64
func (*ManifestChange) GetLevel ¶
func (m *ManifestChange) GetLevel() uint32
func (*ManifestChange) GetOp ¶
func (m *ManifestChange) GetOp() ManifestChange_Operation
func (*ManifestChange) Marshal ¶
func (m *ManifestChange) Marshal() (dAtA []byte, err error)
func (*ManifestChange) MarshalToSizedBuffer ¶
func (m *ManifestChange) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ManifestChange) ProtoMessage ¶
func (*ManifestChange) ProtoMessage()
func (*ManifestChange) Reset ¶
func (m *ManifestChange) Reset()
func (*ManifestChange) Size ¶
func (m *ManifestChange) Size() (n int)
func (*ManifestChange) String ¶
func (m *ManifestChange) String() string
func (*ManifestChange) Unmarshal ¶
func (m *ManifestChange) Unmarshal(dAtA []byte) error
func (*ManifestChange) XXX_DiscardUnknown ¶
func (m *ManifestChange) XXX_DiscardUnknown()
func (*ManifestChange) XXX_Marshal ¶
func (m *ManifestChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ManifestChange) XXX_Merge ¶
func (m *ManifestChange) XXX_Merge(src proto.Message)
func (*ManifestChange) XXX_Size ¶
func (m *ManifestChange) XXX_Size() int
func (*ManifestChange) XXX_Unmarshal ¶
func (m *ManifestChange) XXX_Unmarshal(b []byte) error
type ManifestChangeSet ¶
type ManifestChangeSet struct { // A set of changes that are applied atomically. Changes []*ManifestChange `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` }
func (*ManifestChangeSet) Descriptor ¶
func (*ManifestChangeSet) Descriptor() ([]byte, []int)
func (*ManifestChangeSet) GetChanges ¶
func (m *ManifestChangeSet) GetChanges() []*ManifestChange
func (*ManifestChangeSet) Marshal ¶
func (m *ManifestChangeSet) Marshal() (dAtA []byte, err error)
func (*ManifestChangeSet) MarshalTo ¶
func (m *ManifestChangeSet) MarshalTo(dAtA []byte) (int, error)
func (*ManifestChangeSet) MarshalToSizedBuffer ¶
func (m *ManifestChangeSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ManifestChangeSet) ProtoMessage ¶
func (*ManifestChangeSet) ProtoMessage()
func (*ManifestChangeSet) Reset ¶
func (m *ManifestChangeSet) Reset()
func (*ManifestChangeSet) Size ¶
func (m *ManifestChangeSet) Size() (n int)
func (*ManifestChangeSet) String ¶
func (m *ManifestChangeSet) String() string
func (*ManifestChangeSet) Unmarshal ¶
func (m *ManifestChangeSet) Unmarshal(dAtA []byte) error
func (*ManifestChangeSet) XXX_DiscardUnknown ¶
func (m *ManifestChangeSet) XXX_DiscardUnknown()
func (*ManifestChangeSet) XXX_Marshal ¶
func (m *ManifestChangeSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ManifestChangeSet) XXX_Merge ¶
func (m *ManifestChangeSet) XXX_Merge(src proto.Message)
func (*ManifestChangeSet) XXX_Size ¶
func (m *ManifestChangeSet) XXX_Size() int
func (*ManifestChangeSet) XXX_Unmarshal ¶
func (m *ManifestChangeSet) XXX_Unmarshal(b []byte) error
type ManifestChange_Operation ¶
type ManifestChange_Operation int32
const ( ManifestChange_CREATE ManifestChange_Operation = 0 ManifestChange_DELETE ManifestChange_Operation = 1 )
func (ManifestChange_Operation) EnumDescriptor ¶
func (ManifestChange_Operation) EnumDescriptor() ([]byte, []int)
func (ManifestChange_Operation) String ¶
func (x ManifestChange_Operation) String() string
type Match ¶
type Match struct { Prefix []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` IgnoreBytes string `protobuf:"bytes,2,opt,name=ignore_bytes,json=ignoreBytes,proto3" json:"ignore_bytes,omitempty"` }
func (*Match) Descriptor ¶
func (*Match) GetIgnoreBytes ¶
func (*Match) ProtoMessage ¶
func (*Match) ProtoMessage()
func (*Match) XXX_DiscardUnknown ¶
func (m *Match) XXX_DiscardUnknown()
func (*Match) XXX_Marshal ¶
func (*Match) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.