smrecord_pb

package
v0.0.0-...-49f93d6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSmrecord        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSmrecord          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSmrecord = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Message_MessageType_name = map[int32]string{
	0: "UPDATE",
	1: "GET",
	2: "QUERY",
}
View Source
var Message_MessageType_value = map[string]int32{
	"UPDATE": 0,
	"GET":    1,
	"QUERY":  2,
}

Functions

This section is empty.

Types

type Message

type Message struct {
	// defines what type of message it is.
	Type Message_MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=smrecord.pb.Message_MessageType" json:"type,omitempty"`
	// Used to specify the key associated with this message.
	Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// The actual value this record is storing
	Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// TTL metadata to use for the sr update
	TTL uint64 `protobuf:"varint,4,opt,name=TTL,proto3" json:"TTL,omitempty"`
}

func (*Message) Descriptor

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

func (*Message) GetKey

func (m *Message) GetKey() []byte

func (*Message) GetTTL

func (m *Message) GetTTL() uint64

func (*Message) GetType

func (m *Message) GetType() Message_MessageType

func (*Message) GetValue

func (m *Message) GetValue() []byte

func (*Message) Marshal

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) MarshalToSizedBuffer

func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) XXX_Unmarshal(b []byte) error

type Message_MessageType

type Message_MessageType int32
const (
	Message_UPDATE Message_MessageType = 0
	Message_GET    Message_MessageType = 1
	Message_QUERY  Message_MessageType = 2
)

func (Message_MessageType) EnumDescriptor

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

func (Message_MessageType) String

func (x Message_MessageType) String() string

Jump to

Keyboard shortcuts

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