Documentation
¶
Index ¶
- func RegisterAddsvcServer(s *grpc.Server, srv AddsvcServer)
- type AddsvcClient
- type AddsvcServer
- type ConcatReply
- func (*ConcatReply) Descriptor() ([]byte, []int)
- func (m *ConcatReply) GetErr() string
- func (m *ConcatReply) GetRs() string
- func (*ConcatReply) ProtoMessage()
- func (m *ConcatReply) Reset()
- func (m *ConcatReply) String() string
- func (m *ConcatReply) XXX_DiscardUnknown()
- func (m *ConcatReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConcatReply) XXX_Merge(src proto.Message)
- func (m *ConcatReply) XXX_Size() int
- func (m *ConcatReply) XXX_Unmarshal(b []byte) error
- 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
- func (m *ConcatRequest) XXX_DiscardUnknown()
- func (m *ConcatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConcatRequest) XXX_Merge(src proto.Message)
- func (m *ConcatRequest) XXX_Size() int
- func (m *ConcatRequest) XXX_Unmarshal(b []byte) error
- type SumReply
- func (*SumReply) Descriptor() ([]byte, []int)
- func (m *SumReply) GetErr() string
- func (m *SumReply) GetRs() int64
- func (*SumReply) ProtoMessage()
- func (m *SumReply) Reset()
- func (m *SumReply) String() string
- func (m *SumReply) XXX_DiscardUnknown()
- func (m *SumReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SumReply) XXX_Merge(src proto.Message)
- func (m *SumReply) XXX_Size() int
- func (m *SumReply) XXX_Unmarshal(b []byte) error
- type SumRequest
- func (*SumRequest) Descriptor() ([]byte, []int)
- func (m *SumRequest) GetA() int64
- func (m *SumRequest) GetB() int64
- func (*SumRequest) ProtoMessage()
- func (m *SumRequest) Reset()
- func (m *SumRequest) String() string
- func (m *SumRequest) XXX_DiscardUnknown()
- func (m *SumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SumRequest) XXX_Merge(src proto.Message)
- func (m *SumRequest) XXX_Size() int
- func (m *SumRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAddsvcServer ¶
func RegisterAddsvcServer(s *grpc.Server, srv AddsvcServer)
Types ¶
type AddsvcClient ¶
type AddsvcClient interface {
Sum(ctx context.Context, in *SumRequest, opts ...grpc.CallOption) (*SumReply, error)
Concat(ctx context.Context, in *ConcatRequest, opts ...grpc.CallOption) (*ConcatReply, error)
}
AddsvcClient is the client API for Addsvc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAddsvcClient ¶
func NewAddsvcClient(cc *grpc.ClientConn) AddsvcClient
type AddsvcServer ¶
type AddsvcServer interface {
Sum(context.Context, *SumRequest) (*SumReply, error)
Concat(context.Context, *ConcatRequest) (*ConcatReply, error)
}
AddsvcServer is the server API for Addsvc service.
type ConcatReply ¶
type ConcatReply struct {
Rs string `protobuf:"bytes,1,opt,name=rs,proto3" json:"rs,omitempty"`
Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ConcatReply) Descriptor ¶
func (*ConcatReply) Descriptor() ([]byte, []int)
func (*ConcatReply) GetErr ¶
func (m *ConcatReply) GetErr() string
func (*ConcatReply) GetRs ¶
func (m *ConcatReply) GetRs() string
func (*ConcatReply) ProtoMessage ¶
func (*ConcatReply) ProtoMessage()
func (*ConcatReply) Reset ¶
func (m *ConcatReply) Reset()
func (*ConcatReply) String ¶
func (m *ConcatReply) String() string
func (*ConcatReply) XXX_DiscardUnknown ¶
func (m *ConcatReply) XXX_DiscardUnknown()
func (*ConcatReply) XXX_Marshal ¶
func (m *ConcatReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConcatReply) XXX_Merge ¶
func (m *ConcatReply) XXX_Merge(src proto.Message)
func (*ConcatReply) XXX_Size ¶
func (m *ConcatReply) XXX_Size() int
func (*ConcatReply) XXX_Unmarshal ¶
func (m *ConcatReply) XXX_Unmarshal(b []byte) error
type ConcatRequest ¶
type ConcatRequest struct {
A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
B string `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
func (*ConcatRequest) XXX_DiscardUnknown ¶
func (m *ConcatRequest) XXX_DiscardUnknown()
func (*ConcatRequest) XXX_Marshal ¶
func (m *ConcatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConcatRequest) XXX_Merge ¶
func (m *ConcatRequest) XXX_Merge(src proto.Message)
func (*ConcatRequest) XXX_Size ¶
func (m *ConcatRequest) XXX_Size() int
func (*ConcatRequest) XXX_Unmarshal ¶
func (m *ConcatRequest) XXX_Unmarshal(b []byte) error
type SumReply ¶
type SumReply struct {
Rs int64 `protobuf:"varint,1,opt,name=rs,proto3" json:"rs,omitempty"`
Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SumReply) Descriptor ¶
func (*SumReply) ProtoMessage ¶
func (*SumReply) ProtoMessage()
func (*SumReply) XXX_DiscardUnknown ¶
func (m *SumReply) XXX_DiscardUnknown()
func (*SumReply) XXX_Marshal ¶
func (*SumReply) XXX_Unmarshal ¶
type SumRequest ¶
type SumRequest struct {
A int64 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
B int64 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
func (*SumRequest) XXX_DiscardUnknown ¶
func (m *SumRequest) XXX_DiscardUnknown()
func (*SumRequest) XXX_Marshal ¶
func (m *SumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SumRequest) XXX_Merge ¶
func (m *SumRequest) XXX_Merge(src proto.Message)
func (*SumRequest) XXX_Size ¶
func (m *SumRequest) XXX_Size() int
func (*SumRequest) XXX_Unmarshal ¶
func (m *SumRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.