Documentation ¶
Index ¶
- Variables
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetKey() []byte
- func (m *Message) GetTTL() uint64
- func (m *Message) GetType() Message_MessageType
- func (m *Message) GetValue() []byte
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (m *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type Message_MessageType
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) GetType ¶
func (m *Message) GetType() Message_MessageType
func (*Message) MarshalToSizedBuffer ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
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
Click to show internal directories.
Click to hide internal directories.