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

package proto

import "github.com/hashicorp/go-plugin/examples/bidirectional/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
SumRequest
SumResponse

Index

Package Files

kv.pb.go

func RegisterAddHelperServer Uses

func RegisterAddHelperServer(s *grpc.Server, srv AddHelperServer)

func RegisterCounterServer Uses

func RegisterCounterServer(s *grpc.Server, srv CounterServer)

type AddHelperClient Uses

type AddHelperClient interface {
    Sum(ctx context.Context, in *SumRequest, opts ...grpc.CallOption) (*SumResponse, error)
}

func NewAddHelperClient Uses

func NewAddHelperClient(cc *grpc.ClientConn) AddHelperClient

type AddHelperServer Uses

type AddHelperServer interface {
    Sum(context.Context, *SumRequest) (*SumResponse, error)
}

type CounterClient Uses

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

func NewCounterClient Uses

func NewCounterClient(cc *grpc.ClientConn) CounterClient

type CounterServer Uses

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

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 int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
}

func (*GetResponse) Descriptor Uses

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

func (*GetResponse) GetValue Uses

func (m *GetResponse) GetValue() int64

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

type PutRequest struct {
    AddServer uint32 `protobuf:"varint,1,opt,name=add_server,json=addServer" json:"add_server,omitempty"`
    Key       string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
    Value     int64  `protobuf:"varint,3,opt,name=value" json:"value,omitempty"`
}

func (*PutRequest) Descriptor Uses

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

func (*PutRequest) GetAddServer Uses

func (m *PutRequest) GetAddServer() uint32

func (*PutRequest) GetKey Uses

func (m *PutRequest) GetKey() string

func (*PutRequest) GetValue Uses

func (m *PutRequest) GetValue() int64

func (*PutRequest) ProtoMessage Uses

func (*PutRequest) ProtoMessage()

func (*PutRequest) Reset Uses

func (m *PutRequest) Reset()

func (*PutRequest) String Uses

func (m *PutRequest) String() string

type SumRequest Uses

type SumRequest struct {
    A   int64 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
    B   int64 `protobuf:"varint,2,opt,name=b" json:"b,omitempty"`
}

func (*SumRequest) Descriptor Uses

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

func (*SumRequest) GetA Uses

func (m *SumRequest) GetA() int64

func (*SumRequest) GetB Uses

func (m *SumRequest) GetB() int64

func (*SumRequest) ProtoMessage Uses

func (*SumRequest) ProtoMessage()

func (*SumRequest) Reset Uses

func (m *SumRequest) Reset()

func (*SumRequest) String Uses

func (m *SumRequest) String() string

type SumResponse Uses

type SumResponse struct {
    R int64 `protobuf:"varint,1,opt,name=r" json:"r,omitempty"`
}

func (*SumResponse) Descriptor Uses

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

func (*SumResponse) GetR Uses

func (m *SumResponse) GetR() int64

func (*SumResponse) ProtoMessage Uses

func (*SumResponse) ProtoMessage()

func (*SumResponse) Reset Uses

func (m *SumResponse) Reset()

func (*SumResponse) String Uses

func (m *SumResponse) String() string

Package proto imports 5 packages (graph) and is imported by 1 packages. Updated 2018-02-25. Refresh now. Tools for package owners.