proto

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeStatus_name = map[int32]string{
		0: "WRITABLE",
		1: "READONLY",
	}
	NodeStatus_value = map[string]int32{
		"WRITABLE": 0,
		"READONLY": 1,
	}
)

Enum value maps for NodeStatus.

View Source
var (
	MetaNotificationType_name = map[int32]string{
		0: "CREATE",
		1: "DELETE",
		2: "UPDATE",
	}
	MetaNotificationType_value = map[string]int32{
		"CREATE": 0,
		"DELETE": 1,
		"UPDATE": 2,
	}
)

Enum value maps for MetaNotificationType.

View Source
var (
	// optional bool mempool = 64101;
	E_Mempool = &file_metadata_proto_extTypes[0]
	// optional bool ignore_unknown_fields = 64102;
	E_IgnoreUnknownFields = &file_metadata_proto_extTypes[1]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var File_metadata_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Meta

type Meta 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"`
	Info  *MetaInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*Meta) CloneMessageVT

func (m *Meta) CloneMessageVT() proto.Message

func (*Meta) CloneVT

func (m *Meta) CloneVT() *Meta

func (*Meta) Descriptor deprecated

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

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) EqualMessageVT

func (this *Meta) EqualMessageVT(thatMsg proto.Message) bool

func (*Meta) EqualVT

func (this *Meta) EqualVT(that *Meta) bool

func (*Meta) GetInfo

func (x *Meta) GetInfo() *MetaInfo

func (*Meta) GetKey

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

func (*Meta) GetValue

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

func (*Meta) MarshalToSizedBufferVT

func (m *Meta) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Meta) MarshalToVT

func (m *Meta) MarshalToVT(dAtA []byte) (int, error)

func (*Meta) MarshalVT

func (m *Meta) MarshalVT() (dAtA []byte, err error)

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

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

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) SizeVT

func (m *Meta) SizeVT() (n int)

func (*Meta) String

func (x *Meta) String() string

func (*Meta) UnmarshalVT

func (m *Meta) UnmarshalVT(dAtA []byte) error

func (*Meta) UnmarshalVTUnsafe

func (m *Meta) UnmarshalVTUnsafe(dAtA []byte) error

type MetaInfo

type MetaInfo struct {
	Version           int64  `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	CreateTime        uint64 `protobuf:"varint,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	ModificationCount uint32 `protobuf:"varint,3,opt,name=modification_count,json=modificationCount,proto3" json:"modification_count,omitempty"`
	ModificationTime  uint64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"`
	SessionId         uint64 `protobuf:"varint,5,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Ephemeral         bool   `protobuf:"varint,6,opt,name=ephemeral,proto3" json:"ephemeral,omitempty"`
	// contains filtered or unexported fields
}

func (*MetaInfo) CloneMessageVT

func (m *MetaInfo) CloneMessageVT() proto.Message

func (*MetaInfo) CloneVT

func (m *MetaInfo) CloneVT() *MetaInfo

func (*MetaInfo) Descriptor deprecated

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

Deprecated: Use MetaInfo.ProtoReflect.Descriptor instead.

func (*MetaInfo) EqualMessageVT

func (this *MetaInfo) EqualMessageVT(thatMsg proto.Message) bool

func (*MetaInfo) EqualVT

func (this *MetaInfo) EqualVT(that *MetaInfo) bool

func (*MetaInfo) GetCreateTime

func (x *MetaInfo) GetCreateTime() uint64

func (*MetaInfo) GetEphemeral

func (x *MetaInfo) GetEphemeral() bool

func (*MetaInfo) GetModificationCount

func (x *MetaInfo) GetModificationCount() uint32

func (*MetaInfo) GetModificationTime

func (x *MetaInfo) GetModificationTime() uint64

func (*MetaInfo) GetSessionId

func (x *MetaInfo) GetSessionId() uint64

func (*MetaInfo) GetVersion

func (x *MetaInfo) GetVersion() int64

func (*MetaInfo) MarshalToSizedBufferVT

func (m *MetaInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*MetaInfo) MarshalToVT

func (m *MetaInfo) MarshalToVT(dAtA []byte) (int, error)

func (*MetaInfo) MarshalVT

func (m *MetaInfo) MarshalVT() (dAtA []byte, err error)

func (*MetaInfo) ProtoMessage

func (*MetaInfo) ProtoMessage()

func (*MetaInfo) ProtoReflect

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

func (*MetaInfo) Reset

func (x *MetaInfo) Reset()

func (*MetaInfo) SizeVT

func (m *MetaInfo) SizeVT() (n int)

func (*MetaInfo) String

func (x *MetaInfo) String() string

func (*MetaInfo) UnmarshalVT

func (m *MetaInfo) UnmarshalVT(dAtA []byte) error

func (*MetaInfo) UnmarshalVTUnsafe

func (m *MetaInfo) UnmarshalVTUnsafe(dAtA []byte) error

type MetaNotification

type MetaNotification struct {
	Type MetaNotificationType `protobuf:"varint,1,opt,name=type,proto3,enum=proto.MetaNotificationType" json:"type,omitempty"`
	Key  []byte               `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*MetaNotification) CloneMessageVT

func (m *MetaNotification) CloneMessageVT() proto.Message

func (*MetaNotification) CloneVT

func (m *MetaNotification) CloneVT() *MetaNotification

func (*MetaNotification) Descriptor deprecated

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

Deprecated: Use MetaNotification.ProtoReflect.Descriptor instead.

func (*MetaNotification) EqualMessageVT

func (this *MetaNotification) EqualMessageVT(thatMsg proto.Message) bool

func (*MetaNotification) EqualVT

func (this *MetaNotification) EqualVT(that *MetaNotification) bool

func (*MetaNotification) GetKey

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

func (*MetaNotification) GetType

func (*MetaNotification) MarshalToSizedBufferVT

func (m *MetaNotification) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*MetaNotification) MarshalToVT

func (m *MetaNotification) MarshalToVT(dAtA []byte) (int, error)

func (*MetaNotification) MarshalVT

func (m *MetaNotification) MarshalVT() (dAtA []byte, err error)

func (*MetaNotification) ProtoMessage

func (*MetaNotification) ProtoMessage()

func (*MetaNotification) ProtoReflect

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

func (*MetaNotification) Reset

func (x *MetaNotification) Reset()

func (*MetaNotification) SizeVT

func (m *MetaNotification) SizeVT() (n int)

func (*MetaNotification) String

func (x *MetaNotification) String() string

func (*MetaNotification) UnmarshalVT

func (m *MetaNotification) UnmarshalVT(dAtA []byte) error

func (*MetaNotification) UnmarshalVTUnsafe

func (m *MetaNotification) UnmarshalVTUnsafe(dAtA []byte) error

type MetaNotificationType

type MetaNotificationType int32
const (
	MetaNotificationType_CREATE MetaNotificationType = 0
	MetaNotificationType_DELETE MetaNotificationType = 1
	MetaNotificationType_UPDATE MetaNotificationType = 2
)

func (MetaNotificationType) Descriptor

func (MetaNotificationType) Enum

func (MetaNotificationType) EnumDescriptor deprecated

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

Deprecated: Use MetaNotificationType.Descriptor instead.

func (MetaNotificationType) Number

func (MetaNotificationType) String

func (x MetaNotificationType) String() string

func (MetaNotificationType) Type

type Node

type Node struct {
	ID     *NodeID    `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Status NodeStatus `protobuf:"varint,2,opt,name=status,proto3,enum=proto.NodeStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) CloneMessageVT

func (m *Node) CloneMessageVT() proto.Message

func (*Node) CloneVT

func (m *Node) CloneVT() *Node

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) EqualMessageVT

func (this *Node) EqualMessageVT(thatMsg proto.Message) bool

func (*Node) EqualVT

func (this *Node) EqualVT(that *Node) bool

func (*Node) GetID

func (x *Node) GetID() *NodeID

func (*Node) GetStatus

func (x *Node) GetStatus() NodeStatus

func (*Node) MarshalToSizedBufferVT

func (m *Node) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Node) MarshalToVT

func (m *Node) MarshalToVT(dAtA []byte) (int, error)

func (*Node) MarshalVT

func (m *Node) MarshalVT() (dAtA []byte, err error)

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) SizeVT

func (m *Node) SizeVT() (n int)

func (*Node) String

func (x *Node) String() string

func (*Node) UnmarshalVT

func (m *Node) UnmarshalVT(dAtA []byte) error

func (*Node) UnmarshalVTUnsafe

func (m *Node) UnmarshalVTUnsafe(dAtA []byte) error

type NodeID

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

func (*NodeID) CloneMessageVT

func (m *NodeID) CloneMessageVT() proto.Message

func (*NodeID) CloneVT

func (m *NodeID) CloneVT() *NodeID

func (*NodeID) Descriptor deprecated

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

Deprecated: Use NodeID.ProtoReflect.Descriptor instead.

func (*NodeID) EqualMessageVT

func (this *NodeID) EqualMessageVT(thatMsg proto.Message) bool

func (*NodeID) EqualVT

func (this *NodeID) EqualVT(that *NodeID) bool

func (*NodeID) GetId

func (x *NodeID) GetId() string

func (*NodeID) GetName

func (x *NodeID) GetName() string

func (*NodeID) MarshalToSizedBufferVT

func (m *NodeID) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*NodeID) MarshalToVT

func (m *NodeID) MarshalToVT(dAtA []byte) (int, error)

func (*NodeID) MarshalVT

func (m *NodeID) MarshalVT() (dAtA []byte, err error)

func (*NodeID) ProtoMessage

func (*NodeID) ProtoMessage()

func (*NodeID) ProtoReflect

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

func (*NodeID) Reset

func (x *NodeID) Reset()

func (*NodeID) SizeVT

func (m *NodeID) SizeVT() (n int)

func (*NodeID) String

func (x *NodeID) String() string

func (*NodeID) UnmarshalVT

func (m *NodeID) UnmarshalVT(dAtA []byte) error

func (*NodeID) UnmarshalVTUnsafe

func (m *NodeID) UnmarshalVTUnsafe(dAtA []byte) error

type NodeStatus

type NodeStatus int32
const (
	NodeStatus_WRITABLE NodeStatus = 0
	NodeStatus_READONLY NodeStatus = 1
)

func (NodeStatus) Descriptor

func (NodeStatus) Descriptor() protoreflect.EnumDescriptor

func (NodeStatus) Enum

func (x NodeStatus) Enum() *NodeStatus

func (NodeStatus) EnumDescriptor deprecated

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

Deprecated: Use NodeStatus.Descriptor instead.

func (NodeStatus) Number

func (x NodeStatus) Number() protoreflect.EnumNumber

func (NodeStatus) String

func (x NodeStatus) String() string

func (NodeStatus) Type

Jump to

Keyboard shortcuts

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