go-plugin: github.com/hashicorp/go-plugin/examples/grpc/proto Index | Files

package proto

import "github.com/hashicorp/go-plugin/examples/grpc/proto"

Package proto is a generated protocol buffer package.

It is generated from these files:

kv.proto

It has these top-level messages:

GetRequest
GetResponse
PutRequest
Empty

Index

Package Files

kv.pb.go

func RegisterKVServer Uses

func RegisterKVServer(s *grpc.Server, srv KVServer)

type Empty Uses

type Empty struct {
}

func (*Empty) Descriptor Uses

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

func (*Empty) ProtoMessage Uses

func (*Empty) ProtoMessage()

func (*Empty) Reset Uses

func (m *Empty) Reset()

func (*Empty) String Uses

func (m *Empty) String() string

type GetRequest Uses

type GetRequest struct {
    Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
}

func (*GetRequest) Descriptor Uses

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

func (*GetRequest) GetKey Uses

func (m *GetRequest) GetKey() string

func (*GetRequest) ProtoMessage Uses

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset Uses

func (m *GetRequest) Reset()

func (*GetRequest) String Uses

func (m *GetRequest) String() string

type GetResponse Uses

type GetResponse struct {
    Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

func (*GetResponse) Descriptor Uses

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

func (*GetResponse) GetValue Uses

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

func (*GetResponse) ProtoMessage Uses

func (*GetResponse) ProtoMessage()

func (*GetResponse) Reset Uses

func (m *GetResponse) Reset()

func (*GetResponse) String Uses

func (m *GetResponse) String() string

type KVClient Uses

type KVClient interface {
    Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
    Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*Empty, error)
}

func NewKVClient Uses

func NewKVClient(cc *grpc.ClientConn) KVClient

type KVServer Uses

type KVServer interface {
    Get(context.Context, *GetRequest) (*GetResponse, error)
    Put(context.Context, *PutRequest) (*Empty, error)
}

type PutRequest Uses

type PutRequest struct {
    Key   string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
    Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

func (*PutRequest) Descriptor Uses

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

func (*PutRequest) GetKey Uses

func (m *PutRequest) GetKey() string

func (*PutRequest) GetValue Uses

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

func (*PutRequest) ProtoMessage Uses

func (*PutRequest) ProtoMessage()

func (*PutRequest) Reset Uses

func (m *PutRequest) Reset()

func (*PutRequest) String Uses

func (m *PutRequest) String() string

Package proto imports 5 packages (graph) and is imported by 1 packages. Updated 2017-06-27. Refresh now. Tools for package owners.