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 ¶
- func RegisterAddServer(s *grpc.Server, srv AddServer)
- type AddClient
- type AddServer
- type ConcatReply
- func (*ConcatReply) Descriptor() ([]byte, []int)
- func (m *ConcatReply) GetErr() string
- func (m *ConcatReply) GetV() string
- func (*ConcatReply) ProtoMessage()
- func (m *ConcatReply) Reset()
- func (m *ConcatReply) String() string
- type ConcatRequest
- func (*ConcatRequest) Descriptor() ([]byte, []int)
- func (m *ConcatRequest) GetA() string
- func (m *ConcatRequest) GetB() string
- func (*ConcatRequest) ProtoMessage()
- func (m *ConcatRequest) Reset()
- func (m *ConcatRequest) String() string
- type SumReply
- func (*SumReply) Descriptor() ([]byte, []int)
- func (m *SumReply) GetErr() string
- func (m *SumReply) GetV() int64
- func (*SumReply) ProtoMessage()
- func (m *SumReply) Reset()
- func (m *SumReply) String() string
- type SumRequest
Functions ¶
func RegisterAddServer ¶
Types ¶
type AddClient ¶
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 ¶
func NewAddClient(cc *grpc.ClientConn) AddClient
type AddServer ¶
type AddServer interface { // Sums two integers. Sum(context.Context, *SumRequest) (*SumReply, error) // Concatenates two strings Concat(context.Context, *ConcatRequest) (*ConcatReply, error) }
type ConcatReply ¶
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 ¶
func (*ConcatReply) Descriptor() ([]byte, []int)
func (*ConcatReply) GetErr ¶
func (m *ConcatReply) GetErr() string
func (*ConcatReply) GetV ¶
func (m *ConcatReply) GetV() string
func (*ConcatReply) ProtoMessage ¶
func (*ConcatReply) ProtoMessage()
func (*ConcatReply) Reset ¶
func (m *ConcatReply) Reset()
func (*ConcatReply) String ¶
func (m *ConcatReply) String() string
type ConcatRequest ¶
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 ¶
func (*ConcatRequest) Descriptor() ([]byte, []int)
func (*ConcatRequest) GetA ¶
func (m *ConcatRequest) GetA() string
func (*ConcatRequest) GetB ¶
func (m *ConcatRequest) GetB() string
func (*ConcatRequest) ProtoMessage ¶
func (*ConcatRequest) ProtoMessage()
func (*ConcatRequest) Reset ¶
func (m *ConcatRequest) Reset()
func (*ConcatRequest) String ¶
func (m *ConcatRequest) String() string
type SumReply ¶
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 ¶
func (*SumReply) GetErr ¶
func (*SumReply) GetV ¶
func (*SumReply) ProtoMessage ¶
func (*SumReply) ProtoMessage()
func (*SumReply) Reset ¶
func (m *SumReply) Reset()
func (*SumReply) String ¶
type SumRequest ¶
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 ¶
func (*SumRequest) Descriptor() ([]byte, []int)
func (*SumRequest) GetA ¶
func (m *SumRequest) GetA() int64
func (*SumRequest) GetB ¶
func (m *SumRequest) GetB() int64
func (*SumRequest) ProtoMessage ¶
func (*SumRequest) ProtoMessage()
func (*SumRequest) Reset ¶
func (m *SumRequest) Reset()
func (*SumRequest) String ¶
func (m *SumRequest) String() string
Source Files ¶
- Version
- v0.7.0
- Published
- Mar 19, 2018
- Platform
- darwin/amd64
- Imports
- 5 packages
- Last checked
- 4 minutes ago –
Tools for package owners.