Documentation
¶
Index ¶
- Variables
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetKey() string
- func (x *Record) GetRecordType() RecordType
- func (x *Record) GetSeq() uint64
- func (x *Record) GetValue() string
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type RecordType
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) GetRecordType ¶
func (x *Record) GetRecordType() RecordType
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
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 ¶
func (RecordType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.