Documentation ¶
Index ¶
- Variables
- type EncodingProto
- type KeyValueStore
- func (*KeyValueStore) Descriptor() ([]byte, []int)deprecated
- func (x *KeyValueStore) GetKey() string
- func (x *KeyValueStore) GetValue() string
- func (*KeyValueStore) ProtoMessage()
- func (x *KeyValueStore) ProtoReflect() protoreflect.Message
- func (x *KeyValueStore) Reset()
- func (x *KeyValueStore) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EncodingProto ¶
type EncodingProto struct { }
EncodingProto is the proto encoding type
func NewEncodingProto ¶
func NewEncodingProto() *EncodingProto
NewEncodingProto creates a new EncodingProto instance
func (*EncodingProto) Marshal ¶
func (e *EncodingProto) Marshal(v interface{}) ([]byte, error)
Marshal converts the given value to a proto byte slice
func (*EncodingProto) Unmarshal ¶
func (e *EncodingProto) Unmarshal(b []byte, v interface{}) error
Unmarshal converts the given proto byte slice to the given value
type KeyValueStore ¶
type KeyValueStore struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*KeyValueStore) Descriptor
deprecated
func (*KeyValueStore) Descriptor() ([]byte, []int)
Deprecated: Use KeyValueStore.ProtoReflect.Descriptor instead.
func (*KeyValueStore) GetKey ¶
func (x *KeyValueStore) GetKey() string
func (*KeyValueStore) GetValue ¶
func (x *KeyValueStore) GetValue() string
func (*KeyValueStore) ProtoMessage ¶
func (*KeyValueStore) ProtoMessage()
func (*KeyValueStore) ProtoReflect ¶
func (x *KeyValueStore) ProtoReflect() protoreflect.Message
func (*KeyValueStore) Reset ¶
func (x *KeyValueStore) Reset()
func (*KeyValueStore) String ¶
func (x *KeyValueStore) String() string
Click to show internal directories.
Click to hide internal directories.