wal

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: May 24, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ElementType_name = map[int32]string{
		0: "ELEMENT_TYPE_NOOP",
		1: "ELEMENT_TYPE_COMMAND",
	}
	ElementType_value = map[string]int32{
		"ELEMENT_TYPE_NOOP":    0,
		"ELEMENT_TYPE_COMMAND": 1,
	}
)

Enum value maps for ElementType.

View Source
var File_protos_wal_wal_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Element

type Element struct {
	Lsn         uint64      `protobuf:"varint,1,opt,name=lsn,proto3" json:"lsn,omitempty"`
	Timestamp   int64       `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	ElementType ElementType `protobuf:"varint,3,opt,name=element_type,json=elementType,proto3,enum=wal.ElementType" json:"element_type,omitempty"`
	Payload     []byte      `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*Element) Descriptor deprecated

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

Deprecated: Use Element.ProtoReflect.Descriptor instead.

func (*Element) GetElementType

func (x *Element) GetElementType() ElementType

func (*Element) GetLsn

func (x *Element) GetLsn() uint64

func (*Element) GetPayload

func (x *Element) GetPayload() []byte

func (*Element) GetTimestamp

func (x *Element) GetTimestamp() int64

func (*Element) ProtoMessage

func (*Element) ProtoMessage()

func (*Element) ProtoReflect

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

func (*Element) Reset

func (x *Element) Reset()

func (*Element) String

func (x *Element) String() string

type ElementType

type ElementType int32
const (
	ElementType_ELEMENT_TYPE_NOOP    ElementType = 0
	ElementType_ELEMENT_TYPE_COMMAND ElementType = 1
)

func (ElementType) Descriptor

func (ElementType) Enum

func (x ElementType) Enum() *ElementType

func (ElementType) EnumDescriptor deprecated

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

Deprecated: Use ElementType.Descriptor instead.

func (ElementType) Number

func (x ElementType) Number() protoreflect.EnumNumber

func (ElementType) String

func (x ElementType) String() string

func (ElementType) Type

Jump to

Keyboard shortcuts

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