store

package
v0.0.0-...-2584677 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ValueType_name = map[int32]string{
		0: "BYTES",
		1: "NUMBER",
	}
	ValueType_value = map[string]int32{
		"BYTES":  0,
		"NUMBER": 1,
	}
)

Enum value maps for ValueType.

View Source
var File_kv_store_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CheckpointMetadata

type CheckpointMetadata struct {
	Files     []string    `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
	Txid      []byte      `protobuf:"bytes,2,opt,name=txid,proto3" json:"txid,omitempty"`
	CreatedAt uint64      `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	FileInfos []*FileInfo `protobuf:"bytes,4,rep,name=fileInfos,proto3" json:"fileInfos,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckpointMetadata) Descriptor deprecated

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

Deprecated: Use CheckpointMetadata.ProtoReflect.Descriptor instead.

func (*CheckpointMetadata) GetCreatedAt

func (x *CheckpointMetadata) GetCreatedAt() uint64

func (*CheckpointMetadata) GetFileInfos

func (x *CheckpointMetadata) GetFileInfos() []*FileInfo

func (*CheckpointMetadata) GetFiles

func (x *CheckpointMetadata) GetFiles() []string

func (*CheckpointMetadata) GetTxid

func (x *CheckpointMetadata) GetTxid() []byte

func (*CheckpointMetadata) ProtoMessage

func (*CheckpointMetadata) ProtoMessage()

func (*CheckpointMetadata) ProtoReflect

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

func (*CheckpointMetadata) Reset

func (x *CheckpointMetadata) Reset()

func (*CheckpointMetadata) String

func (x *CheckpointMetadata) String() string

type Command

type Command struct {

	// Types that are assignable to Req:
	//
	//	*Command_NopReq
	//	*Command_PutReq
	//	*Command_DeleteReq
	//	*Command_TxnReq
	//	*Command_IncrReq
	Req isCommand_Req `protobuf_oneof:"req"`
	// contains filtered or unexported fields
}

func (*Command) Descriptor deprecated

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

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetDeleteReq

func (x *Command) GetDeleteReq() *rpc.DeleteRangeRequest

func (*Command) GetIncrReq

func (x *Command) GetIncrReq() *rpc.IncrementRequest

func (*Command) GetNopReq

func (x *Command) GetNopReq() *NopRequest

func (*Command) GetPutReq

func (x *Command) GetPutReq() *rpc.PutRequest

func (*Command) GetReq

func (m *Command) GetReq() isCommand_Req

func (*Command) GetTxnReq

func (x *Command) GetTxnReq() *rpc.TxnRequest

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

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

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

type Command_DeleteReq

type Command_DeleteReq struct {
	DeleteReq *rpc.DeleteRangeRequest `protobuf:"bytes,3,opt,name=delete_req,json=deleteReq,proto3,oneof"`
}

type Command_IncrReq

type Command_IncrReq struct {
	IncrReq *rpc.IncrementRequest `protobuf:"bytes,5,opt,name=incr_req,json=incrReq,proto3,oneof"`
}

type Command_NopReq

type Command_NopReq struct {
	NopReq *NopRequest `protobuf:"bytes,1,opt,name=nop_req,json=nopReq,proto3,oneof"`
}

type Command_PutReq

type Command_PutReq struct {
	PutReq *rpc.PutRequest `protobuf:"bytes,2,opt,name=put_req,json=putReq,proto3,oneof"`
}

type Command_TxnReq

type Command_TxnReq struct {
	TxnReq *rpc.TxnRequest `protobuf:"bytes,4,opt,name=txn_req,json=txnReq,proto3,oneof"`
}

type FileInfo

type FileInfo struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Checksum string `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"`
	// contains filtered or unexported fields
}

func (*FileInfo) Descriptor deprecated

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

Deprecated: Use FileInfo.ProtoReflect.Descriptor instead.

func (*FileInfo) GetChecksum

func (x *FileInfo) GetChecksum() string

func (*FileInfo) GetName

func (x *FileInfo) GetName() string

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) ProtoReflect

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

func (*FileInfo) Reset

func (x *FileInfo) Reset()

func (*FileInfo) String

func (x *FileInfo) String() string

type KeyMeta

type KeyMeta struct {

	// create_revision is the revision of the last creation on the key
	CreateRevision int64 `protobuf:"varint,1,opt,name=create_revision,json=createRevision,proto3" json:"create_revision,omitempty"`
	// mod_revision is the revision of the last modification on the key
	ModRevision int64 `protobuf:"varint,2,opt,name=mod_revision,json=modRevision,proto3" json:"mod_revision,omitempty"`
	// version is the version of the most recent value
	Version int64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	// value type
	ValueType ValueType `` /* 130-byte string literal not displayed */
	// time in milliseconds when the record expires (0 for none)
	ExpireTime int64 `protobuf:"varint,5,opt,name=expireTime,proto3" json:"expireTime,omitempty"`
	// contains filtered or unexported fields
}

KeyRecord holds mvcc metadata for a given key

func (*KeyMeta) Descriptor deprecated

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

Deprecated: Use KeyMeta.ProtoReflect.Descriptor instead.

func (*KeyMeta) GetCreateRevision

func (x *KeyMeta) GetCreateRevision() int64

func (*KeyMeta) GetExpireTime

func (x *KeyMeta) GetExpireTime() int64

func (*KeyMeta) GetModRevision

func (x *KeyMeta) GetModRevision() int64

func (*KeyMeta) GetValueType

func (x *KeyMeta) GetValueType() ValueType

func (*KeyMeta) GetVersion

func (x *KeyMeta) GetVersion() int64

func (*KeyMeta) ProtoMessage

func (*KeyMeta) ProtoMessage()

func (*KeyMeta) ProtoReflect

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

func (*KeyMeta) Reset

func (x *KeyMeta) Reset()

func (*KeyMeta) String

func (x *KeyMeta) String() string

type NopRequest

type NopRequest struct {
	// contains filtered or unexported fields
}

func (*NopRequest) Descriptor deprecated

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

Deprecated: Use NopRequest.ProtoReflect.Descriptor instead.

func (*NopRequest) ProtoMessage

func (*NopRequest) ProtoMessage()

func (*NopRequest) ProtoReflect

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

func (*NopRequest) Reset

func (x *NopRequest) Reset()

func (*NopRequest) String

func (x *NopRequest) String() string

type ValueType

type ValueType int32
const (
	ValueType_BYTES  ValueType = 0
	ValueType_NUMBER ValueType = 1 // this is to support increment
)

func (ValueType) Descriptor

func (ValueType) Descriptor() protoreflect.EnumDescriptor

func (ValueType) Enum

func (x ValueType) Enum() *ValueType

func (ValueType) EnumDescriptor deprecated

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

Deprecated: Use ValueType.Descriptor instead.

func (ValueType) Number

func (x ValueType) Number() protoreflect.EnumNumber

func (ValueType) String

func (x ValueType) String() string

func (ValueType) Type

Jump to

Keyboard shortcuts

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