pb

package
v4.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EncryptionAlgo_name = map[int32]string{
		0: "aes",
	}
	EncryptionAlgo_value = map[string]int32{
		"aes": 0,
	}
)

Enum value maps for EncryptionAlgo.

View Source
var (
	ManifestChange_Operation_name = map[int32]string{
		0: "CREATE",
		1: "DELETE",
	}
	ManifestChange_Operation_value = map[string]int32{
		"CREATE": 0,
		"DELETE": 1,
	}
)

Enum value maps for ManifestChange_Operation.

View Source
var (
	Checksum_Algorithm_name = map[int32]string{
		0: "CRC32C",
		1: "XXHash64",
	}
	Checksum_Algorithm_value = map[string]int32{
		"CRC32C":   0,
		"XXHash64": 1,
	}
)

Enum value maps for Checksum_Algorithm.

View Source
var File_badgerpb4_proto protoreflect.FileDescriptor

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"` // For storing type of Checksum algorithm used
	Sum  uint64             `protobuf:"varint,2,opt,name=sum,proto3" json:"sum,omitempty"`
	// contains filtered or unexported fields
}

func (*Checksum) Descriptor deprecated

func (*Checksum) Descriptor() ([]byte, []int)

Deprecated: Use Checksum.ProtoReflect.Descriptor instead.

func (*Checksum) GetAlgo

func (x *Checksum) GetAlgo() Checksum_Algorithm

func (*Checksum) GetSum

func (x *Checksum) GetSum() uint64

func (*Checksum) ProtoMessage

func (*Checksum) ProtoMessage()

func (*Checksum) ProtoReflect added in v4.5.0

func (x *Checksum) ProtoReflect() protoreflect.Message

func (*Checksum) Reset

func (x *Checksum) Reset()

func (*Checksum) String

func (x *Checksum) String() string

type Checksum_Algorithm

type Checksum_Algorithm int32
const (
	Checksum_CRC32C   Checksum_Algorithm = 0
	Checksum_XXHash64 Checksum_Algorithm = 1
)

func (Checksum_Algorithm) Descriptor added in v4.5.0

func (Checksum_Algorithm) Enum added in v4.5.0

func (Checksum_Algorithm) EnumDescriptor deprecated

func (Checksum_Algorithm) EnumDescriptor() ([]byte, []int)

Deprecated: Use Checksum_Algorithm.Descriptor instead.

func (Checksum_Algorithm) Number added in v4.5.0

func (Checksum_Algorithm) String

func (x Checksum_Algorithm) String() string

func (Checksum_Algorithm) Type added in v4.5.0

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"`
	// contains filtered or unexported fields
}

func (*DataKey) Descriptor deprecated

func (*DataKey) Descriptor() ([]byte, []int)

Deprecated: Use DataKey.ProtoReflect.Descriptor instead.

func (*DataKey) GetCreatedAt

func (x *DataKey) GetCreatedAt() int64

func (*DataKey) GetData

func (x *DataKey) GetData() []byte

func (*DataKey) GetIv

func (x *DataKey) GetIv() []byte

func (*DataKey) GetKeyId

func (x *DataKey) GetKeyId() uint64

func (*DataKey) ProtoMessage

func (*DataKey) ProtoMessage()

func (*DataKey) ProtoReflect added in v4.5.0

func (x *DataKey) ProtoReflect() protoreflect.Message

func (*DataKey) Reset

func (x *DataKey) Reset()

func (*DataKey) String

func (x *DataKey) String() string

type EncryptionAlgo

type EncryptionAlgo int32
const (
	EncryptionAlgo_aes EncryptionAlgo = 0
)

func (EncryptionAlgo) Descriptor added in v4.5.0

func (EncryptionAlgo) Enum added in v4.5.0

func (x EncryptionAlgo) Enum() *EncryptionAlgo

func (EncryptionAlgo) EnumDescriptor deprecated

func (EncryptionAlgo) EnumDescriptor() ([]byte, []int)

Deprecated: Use EncryptionAlgo.Descriptor instead.

func (EncryptionAlgo) Number added in v4.5.0

func (EncryptionAlgo) String

func (x EncryptionAlgo) String() string

func (EncryptionAlgo) Type added in v4.5.0

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"`
	// contains filtered or unexported fields
}

func (*KV) Descriptor deprecated

func (*KV) Descriptor() ([]byte, []int)

Deprecated: Use KV.ProtoReflect.Descriptor instead.

func (*KV) GetExpiresAt

func (x *KV) GetExpiresAt() uint64

func (*KV) GetKey

func (x *KV) GetKey() []byte

func (*KV) GetMeta

func (x *KV) GetMeta() []byte

func (*KV) GetStreamDone

func (x *KV) GetStreamDone() bool

func (*KV) GetStreamId

func (x *KV) GetStreamId() uint32

func (*KV) GetUserMeta

func (x *KV) GetUserMeta() []byte

func (*KV) GetValue

func (x *KV) GetValue() []byte

func (*KV) GetVersion

func (x *KV) GetVersion() uint64

func (*KV) ProtoMessage

func (*KV) ProtoMessage()

func (*KV) ProtoReflect added in v4.5.0

func (x *KV) ProtoReflect() protoreflect.Message

func (*KV) Reset

func (x *KV) Reset()

func (*KV) String

func (x *KV) String() string

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"`
	// contains filtered or unexported fields
}

func (*KVList) Descriptor deprecated

func (*KVList) Descriptor() ([]byte, []int)

Deprecated: Use KVList.ProtoReflect.Descriptor instead.

func (*KVList) GetAllocRef

func (x *KVList) GetAllocRef() uint64

func (*KVList) GetKv

func (x *KVList) GetKv() []*KV

func (*KVList) ProtoMessage

func (*KVList) ProtoMessage()

func (*KVList) ProtoReflect added in v4.5.0

func (x *KVList) ProtoReflect() protoreflect.Message

func (*KVList) Reset

func (x *KVList) Reset()

func (*KVList) String

func (x *KVList) String() string

type ManifestChange

type ManifestChange struct {
	Id             uint64                   `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` // Table ID.
	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"` // Only used for CREATE.
	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"` // Only used for CREATE Op.
	// contains filtered or unexported fields
}

func (*ManifestChange) Descriptor deprecated

func (*ManifestChange) Descriptor() ([]byte, []int)

Deprecated: Use ManifestChange.ProtoReflect.Descriptor instead.

func (*ManifestChange) GetCompression

func (x *ManifestChange) GetCompression() uint32

func (*ManifestChange) GetEncryptionAlgo

func (x *ManifestChange) GetEncryptionAlgo() EncryptionAlgo

func (*ManifestChange) GetId

func (x *ManifestChange) GetId() uint64

func (*ManifestChange) GetKeyId

func (x *ManifestChange) GetKeyId() uint64

func (*ManifestChange) GetLevel

func (x *ManifestChange) GetLevel() uint32

func (*ManifestChange) GetOp

func (*ManifestChange) ProtoMessage

func (*ManifestChange) ProtoMessage()

func (*ManifestChange) ProtoReflect added in v4.5.0

func (x *ManifestChange) ProtoReflect() protoreflect.Message

func (*ManifestChange) Reset

func (x *ManifestChange) Reset()

func (*ManifestChange) String

func (x *ManifestChange) String() string

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"`
	// contains filtered or unexported fields
}

func (*ManifestChangeSet) Descriptor deprecated

func (*ManifestChangeSet) Descriptor() ([]byte, []int)

Deprecated: Use ManifestChangeSet.ProtoReflect.Descriptor instead.

func (*ManifestChangeSet) GetChanges

func (x *ManifestChangeSet) GetChanges() []*ManifestChange

func (*ManifestChangeSet) ProtoMessage

func (*ManifestChangeSet) ProtoMessage()

func (*ManifestChangeSet) ProtoReflect added in v4.5.0

func (x *ManifestChangeSet) ProtoReflect() protoreflect.Message

func (*ManifestChangeSet) Reset

func (x *ManifestChangeSet) Reset()

func (*ManifestChangeSet) String

func (x *ManifestChangeSet) String() string

type ManifestChange_Operation

type ManifestChange_Operation int32
const (
	ManifestChange_CREATE ManifestChange_Operation = 0
	ManifestChange_DELETE ManifestChange_Operation = 1
)

func (ManifestChange_Operation) Descriptor added in v4.5.0

func (ManifestChange_Operation) Enum added in v4.5.0

func (ManifestChange_Operation) EnumDescriptor deprecated

func (ManifestChange_Operation) EnumDescriptor() ([]byte, []int)

Deprecated: Use ManifestChange_Operation.Descriptor instead.

func (ManifestChange_Operation) Number added in v4.5.0

func (ManifestChange_Operation) String

func (x ManifestChange_Operation) String() string

func (ManifestChange_Operation) Type added in v4.5.0

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"` // Comma separated with dash to represent ranges "1, 2-3, 4-7, 9"
	// contains filtered or unexported fields
}

func (*Match) Descriptor deprecated

func (*Match) Descriptor() ([]byte, []int)

Deprecated: Use Match.ProtoReflect.Descriptor instead.

func (*Match) GetIgnoreBytes

func (x *Match) GetIgnoreBytes() string

func (*Match) GetPrefix

func (x *Match) GetPrefix() []byte

func (*Match) ProtoMessage

func (*Match) ProtoMessage()

func (*Match) ProtoReflect added in v4.5.0

func (x *Match) ProtoReflect() protoreflect.Message

func (*Match) Reset

func (x *Match) Reset()

func (*Match) String

func (x *Match) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL