Documentation ¶
Index ¶
- func RegisterServerAServer(s *grpc.Server, srv ServerAServer)
- func RegisterServerBServer(s *grpc.Server, srv ServerBServer)
- type HelloReq
- func (*HelloReq) Descriptor() ([]byte, []int)
- func (m *HelloReq) GetName() string
- func (*HelloReq) ProtoMessage()
- func (m *HelloReq) Reset()
- func (m *HelloReq) String() string
- func (m *HelloReq) XXX_DiscardUnknown()
- func (m *HelloReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HelloReq) XXX_Merge(src proto.Message)
- func (m *HelloReq) XXX_Size() int
- func (m *HelloReq) XXX_Unmarshal(b []byte) error
- type HelloResp
- func (*HelloResp) Descriptor() ([]byte, []int)
- func (m *HelloResp) GetEcho() string
- func (*HelloResp) ProtoMessage()
- func (m *HelloResp) Reset()
- func (m *HelloResp) String() string
- func (m *HelloResp) XXX_DiscardUnknown()
- func (m *HelloResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HelloResp) XXX_Merge(src proto.Message)
- func (m *HelloResp) XXX_Size() int
- func (m *HelloResp) XXX_Unmarshal(b []byte) error
- type HiReq
- func (*HiReq) Descriptor() ([]byte, []int)
- func (m *HiReq) GetName() string
- func (*HiReq) ProtoMessage()
- func (m *HiReq) Reset()
- func (m *HiReq) String() string
- func (m *HiReq) XXX_DiscardUnknown()
- func (m *HiReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HiReq) XXX_Merge(src proto.Message)
- func (m *HiReq) XXX_Size() int
- func (m *HiReq) XXX_Unmarshal(b []byte) error
- type HiResp
- func (*HiResp) Descriptor() ([]byte, []int)
- func (m *HiResp) GetEcho() string
- func (*HiResp) ProtoMessage()
- func (m *HiResp) Reset()
- func (m *HiResp) String() string
- func (m *HiResp) XXX_DiscardUnknown()
- func (m *HiResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HiResp) XXX_Merge(src proto.Message)
- func (m *HiResp) XXX_Size() int
- func (m *HiResp) XXX_Unmarshal(b []byte) error
- type ServerAClient
- type ServerAServer
- type ServerBClient
- type ServerBServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServerAServer ¶
func RegisterServerAServer(s *grpc.Server, srv ServerAServer)
func RegisterServerBServer ¶
func RegisterServerBServer(s *grpc.Server, srv ServerBServer)
Types ¶
type HelloReq ¶
type HelloReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HelloReq) Descriptor ¶
func (*HelloReq) ProtoMessage ¶
func (*HelloReq) ProtoMessage()
func (*HelloReq) XXX_DiscardUnknown ¶
func (m *HelloReq) XXX_DiscardUnknown()
func (*HelloReq) XXX_Marshal ¶
func (*HelloReq) XXX_Unmarshal ¶
type HelloResp ¶
type HelloResp struct { Echo string `protobuf:"bytes,1,opt,name=echo,proto3" json:"echo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HelloResp) Descriptor ¶
func (*HelloResp) ProtoMessage ¶
func (*HelloResp) ProtoMessage()
func (*HelloResp) XXX_DiscardUnknown ¶
func (m *HelloResp) XXX_DiscardUnknown()
func (*HelloResp) XXX_Marshal ¶
func (*HelloResp) XXX_Unmarshal ¶
type HiReq ¶
type HiReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HiReq) Descriptor ¶
func (*HiReq) ProtoMessage ¶
func (*HiReq) ProtoMessage()
func (*HiReq) XXX_DiscardUnknown ¶
func (m *HiReq) XXX_DiscardUnknown()
func (*HiReq) XXX_Marshal ¶
func (*HiReq) XXX_Unmarshal ¶
type HiResp ¶
type HiResp struct { Echo string `protobuf:"bytes,1,opt,name=echo,proto3" json:"echo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HiResp) Descriptor ¶
func (*HiResp) ProtoMessage ¶
func (*HiResp) ProtoMessage()
func (*HiResp) XXX_DiscardUnknown ¶
func (m *HiResp) XXX_DiscardUnknown()
func (*HiResp) XXX_Marshal ¶
func (*HiResp) XXX_Unmarshal ¶
type ServerAClient ¶
type ServerAClient interface {
Hi(ctx context.Context, in *HiReq, opts ...grpc.CallOption) (*HiResp, error)
}
ServerAClient is the client API for ServerA service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServerAClient ¶
func NewServerAClient(cc *grpc.ClientConn) ServerAClient
type ServerAServer ¶
ServerAServer is the server API for ServerA service.
type ServerBClient ¶
type ServerBClient interface {
Hello(ctx context.Context, in *HelloReq, opts ...grpc.CallOption) (*HelloResp, error)
}
ServerBClient is the client API for ServerB service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServerBClient ¶
func NewServerBClient(cc *grpc.ClientConn) ServerBClient
Click to show internal directories.
Click to hide internal directories.