db

package
v0.0.0-...-80bddaf Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RecordType_name = map[int32]string{
		0: "RECORD_TYPE_UNSPECIFIED",
		1: "PUT",
		2: "DELETE",
	}
	RecordType_value = map[string]int32{
		"RECORD_TYPE_UNSPECIFIED": 0,
		"PUT":                     1,
		"DELETE":                  2,
	}
)

Enum value maps for RecordType.

View Source
var File_record_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Record

type Record struct {
	RecordType RecordType `protobuf:"varint,1,opt,name=record_type,json=recordType,proto3,enum=db.RecordType" json:"record_type,omitempty"`
	Key        string     `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Value      string     `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Seq        uint64     `protobuf:"varint,4,opt,name=seq,proto3" json:"seq,omitempty"` // sequence number
	// contains filtered or unexported fields
}

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetKey

func (x *Record) GetKey() string

func (*Record) GetRecordType

func (x *Record) GetRecordType() RecordType

func (*Record) GetSeq

func (x *Record) GetSeq() uint64

func (*Record) GetValue

func (x *Record) GetValue() string

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type RecordType

type RecordType int32

Represents the type of WAL record, similar to your RecordType enum.

const (
	RecordType_RECORD_TYPE_UNSPECIFIED RecordType = 0
	RecordType_PUT                     RecordType = 1
	RecordType_DELETE                  RecordType = 2
)

func (RecordType) Descriptor

func (RecordType) Descriptor() protoreflect.EnumDescriptor

func (RecordType) Enum

func (x RecordType) Enum() *RecordType

func (RecordType) EnumDescriptor deprecated

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

Deprecated: Use RecordType.Descriptor instead.

func (RecordType) Number

func (x RecordType) Number() protoreflect.EnumNumber

func (RecordType) String

func (x RecordType) String() string

func (RecordType) Type

Directories

Path Synopsis
encoding

Jump to

Keyboard shortcuts

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