Documentation ¶
Overview ¶
Package keyvalue is a generated protocol buffer package.
It is generated from these files:
keyvalue/keyvalue.proto
It has these top-level messages:
SetKeyValueRequest GetKeyValueRequest KeyValueResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterKeyValueServer ¶
func RegisterKeyValueServer(s *grpc.Server, srv KeyValueServer)
Types ¶
type GetKeyValueRequest ¶
type GetKeyValueRequest struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
}
func (*GetKeyValueRequest) Descriptor ¶
func (*GetKeyValueRequest) Descriptor() ([]byte, []int)
func (*GetKeyValueRequest) GetKey ¶
func (m *GetKeyValueRequest) GetKey() string
func (*GetKeyValueRequest) ProtoMessage ¶
func (*GetKeyValueRequest) ProtoMessage()
func (*GetKeyValueRequest) Reset ¶
func (m *GetKeyValueRequest) Reset()
func (*GetKeyValueRequest) String ¶
func (m *GetKeyValueRequest) String() string
type KeyValueClient ¶
type KeyValueClient interface { Set(ctx context.Context, in *SetKeyValueRequest, opts ...grpc.CallOption) (*KeyValueResponse, error) Get(ctx context.Context, in *GetKeyValueRequest, opts ...grpc.CallOption) (*KeyValueResponse, error) }
func NewKeyValueClient ¶
func NewKeyValueClient(cc *grpc.ClientConn) KeyValueClient
type KeyValueResponse ¶
type KeyValueResponse struct { Success string `protobuf:"bytes,1,opt,name=success" json:"success,omitempty"` Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
func (*KeyValueResponse) Descriptor ¶
func (*KeyValueResponse) Descriptor() ([]byte, []int)
func (*KeyValueResponse) GetSuccess ¶
func (m *KeyValueResponse) GetSuccess() string
func (*KeyValueResponse) GetValue ¶
func (m *KeyValueResponse) GetValue() string
func (*KeyValueResponse) ProtoMessage ¶
func (*KeyValueResponse) ProtoMessage()
func (*KeyValueResponse) Reset ¶
func (m *KeyValueResponse) Reset()
func (*KeyValueResponse) String ¶
func (m *KeyValueResponse) String() string
type KeyValueServer ¶
type KeyValueServer interface { Set(context.Context, *SetKeyValueRequest) (*KeyValueResponse, error) Get(context.Context, *GetKeyValueRequest) (*KeyValueResponse, error) }
type SetKeyValueRequest ¶
type SetKeyValueRequest struct { Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
func (*SetKeyValueRequest) Descriptor ¶
func (*SetKeyValueRequest) Descriptor() ([]byte, []int)
func (*SetKeyValueRequest) GetKey ¶
func (m *SetKeyValueRequest) GetKey() string
func (*SetKeyValueRequest) GetValue ¶
func (m *SetKeyValueRequest) GetValue() string
func (*SetKeyValueRequest) ProtoMessage ¶
func (*SetKeyValueRequest) ProtoMessage()
func (*SetKeyValueRequest) Reset ¶
func (m *SetKeyValueRequest) Reset()
func (*SetKeyValueRequest) String ¶
func (m *SetKeyValueRequest) String() string
Click to show internal directories.
Click to hide internal directories.