kit: github.com/go-kit/kit/examples/addsvc/pb Index | Files

package pb

import "github.com/go-kit/kit/examples/addsvc/pb"

Package pb is a generated protocol buffer package.

It is generated from these files:

addsvc.proto

It has these top-level messages:

SumRequest
SumReply
ConcatRequest
ConcatReply

Index

Package Files

addsvc.pb.go

func RegisterAddServer Uses

func RegisterAddServer(s *grpc.Server, srv AddServer)

type AddClient Uses

type AddClient interface {
    // Sums two integers.
    Sum(ctx context.Context, in *SumRequest, opts ...grpc.CallOption) (*SumReply, error)
    // Concatenates two strings
    Concat(ctx context.Context, in *ConcatRequest, opts ...grpc.CallOption) (*ConcatReply, error)
}

func NewAddClient Uses

func NewAddClient(cc *grpc.ClientConn) AddClient

type AddServer Uses

type AddServer interface {
    // Sums two integers.
    Sum(context.Context, *SumRequest) (*SumReply, error)
    // Concatenates two strings
    Concat(context.Context, *ConcatRequest) (*ConcatReply, error)
}

type ConcatReply Uses

type ConcatReply struct {
    V   string `protobuf:"bytes,1,opt,name=v" json:"v,omitempty"`
    Err string `protobuf:"bytes,2,opt,name=err" json:"err,omitempty"`
}

The Concat response contains the result of the concatenation.

func (*ConcatReply) Descriptor Uses

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

func (*ConcatReply) ProtoMessage Uses

func (*ConcatReply) ProtoMessage()

func (*ConcatReply) Reset Uses

func (m *ConcatReply) Reset()

func (*ConcatReply) String Uses

func (m *ConcatReply) String() string

type ConcatRequest Uses

type ConcatRequest struct {
    A   string `protobuf:"bytes,1,opt,name=a" json:"a,omitempty"`
    B   string `protobuf:"bytes,2,opt,name=b" json:"b,omitempty"`
}

The Concat request contains two parameters.

func (*ConcatRequest) Descriptor Uses

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

func (*ConcatRequest) ProtoMessage Uses

func (*ConcatRequest) ProtoMessage()

func (*ConcatRequest) Reset Uses

func (m *ConcatRequest) Reset()

func (*ConcatRequest) String Uses

func (m *ConcatRequest) String() string

type SumReply Uses

type SumReply struct {
    V   int64  `protobuf:"varint,1,opt,name=v" json:"v,omitempty"`
    Err string `protobuf:"bytes,2,opt,name=err" json:"err,omitempty"`
}

The sum response contains the result of the calculation.

func (*SumReply) Descriptor Uses

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

func (*SumReply) ProtoMessage Uses

func (*SumReply) ProtoMessage()

func (*SumReply) Reset Uses

func (m *SumReply) Reset()

func (*SumReply) String Uses

func (m *SumReply) 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"`
}

The sum request contains two parameters.

func (*SumRequest) Descriptor Uses

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

func (*SumRequest) ProtoMessage Uses

func (*SumRequest) ProtoMessage()

func (*SumRequest) Reset Uses

func (m *SumRequest) Reset()

func (*SumRequest) String Uses

func (m *SumRequest) String() string

Package pb imports 5 packages (graph) and is imported by 6 packages. Updated 2016-11-08. Refresh now. Tools for package owners.