import "github.com/dgraph-io/badger/pb"
var ( ErrInvalidLengthBadgerpb3 = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBadgerpb3 = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBadgerpb3 = fmt.Errorf("proto: unexpected end of group") )
type Checksum struct { Algo Checksum_Algorithm `protobuf:"varint,1,opt,name=algo,proto3,enum=badgerpb3.Checksum_Algorithm" json:"algo,omitempty"` Sum uint64 `protobuf:"varint,2,opt,name=sum,proto3" json:"sum,omitempty"` }
func (m *Checksum) GetAlgo() Checksum_Algorithm
const ( Checksum_CRC32C Checksum_Algorithm = 0 Checksum_XXHash64 Checksum_Algorithm = 1 )
func (Checksum_Algorithm) EnumDescriptor() ([]byte, []int)
func (x Checksum_Algorithm) String() string
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"` }
const ( EncryptionAlgo_aes EncryptionAlgo = 0 )
func (EncryptionAlgo) EnumDescriptor() ([]byte, []int)
func (x EncryptionAlgo) String() string
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"` }
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"` }
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=badgerpb3.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 `protobuf:"varint,5,opt,name=encryption_algo,json=encryptionAlgo,proto3,enum=badgerpb3.EncryptionAlgo" json:"encryption_algo,omitempty"` Compression uint32 `protobuf:"varint,6,opt,name=compression,proto3" json:"compression,omitempty"` }
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_Merge(src proto.Message)
func (m *ManifestChange) XXX_Size() int
func (m *ManifestChange) XXX_Unmarshal(b []byte) error
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() ([]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_Merge(src proto.Message)
func (m *ManifestChangeSet) XXX_Size() int
func (m *ManifestChangeSet) XXX_Unmarshal(b []byte) error
const ( ManifestChange_CREATE ManifestChange_Operation = 0 ManifestChange_DELETE ManifestChange_Operation = 1 )
func (ManifestChange_Operation) EnumDescriptor() ([]byte, []int)
func (x ManifestChange_Operation) String() string
Package pb imports 5 packages (graph) and is imported by 6 packages. Updated 2021-01-27. Refresh now. Tools for package owners.