keyvalue

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 5 Imported by: 0

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 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

Jump to

Keyboard shortcuts

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