Documentation ¶
Index ¶
- func RegisterHelloServer(s *grpc.Server, srv HelloServer)
- type CallRequest
- func (*CallRequest) Descriptor() ([]byte, []int)
- func (m *CallRequest) GetName() string
- func (*CallRequest) ProtoMessage()
- func (m *CallRequest) Reset()
- func (m *CallRequest) String() string
- func (m *CallRequest) XXX_DiscardUnknown()
- func (m *CallRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CallRequest) XXX_Merge(src proto.Message)
- func (m *CallRequest) XXX_Size() int
- func (m *CallRequest) XXX_Unmarshal(b []byte) error
- type CallResponse
- func (*CallResponse) Descriptor() ([]byte, []int)
- func (m *CallResponse) GetMsg() string
- func (*CallResponse) ProtoMessage()
- func (m *CallResponse) Reset()
- func (m *CallResponse) String() string
- func (m *CallResponse) XXX_DiscardUnknown()
- func (m *CallResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CallResponse) XXX_Merge(src proto.Message)
- func (m *CallResponse) XXX_Size() int
- func (m *CallResponse) XXX_Unmarshal(b []byte) error
- type HelloClient
- type HelloServer
- type UnimplementedHelloServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHelloServer ¶
func RegisterHelloServer(s *grpc.Server, srv HelloServer)
Types ¶
type CallRequest ¶
type CallRequest 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 (*CallRequest) Descriptor ¶
func (*CallRequest) Descriptor() ([]byte, []int)
func (*CallRequest) GetName ¶
func (m *CallRequest) GetName() string
func (*CallRequest) ProtoMessage ¶
func (*CallRequest) ProtoMessage()
func (*CallRequest) Reset ¶
func (m *CallRequest) Reset()
func (*CallRequest) String ¶
func (m *CallRequest) String() string
func (*CallRequest) XXX_DiscardUnknown ¶
func (m *CallRequest) XXX_DiscardUnknown()
func (*CallRequest) XXX_Marshal ¶
func (m *CallRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CallRequest) XXX_Merge ¶
func (m *CallRequest) XXX_Merge(src proto.Message)
func (*CallRequest) XXX_Size ¶
func (m *CallRequest) XXX_Size() int
func (*CallRequest) XXX_Unmarshal ¶
func (m *CallRequest) XXX_Unmarshal(b []byte) error
type CallResponse ¶
type CallResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CallResponse) Descriptor ¶
func (*CallResponse) Descriptor() ([]byte, []int)
func (*CallResponse) GetMsg ¶
func (m *CallResponse) GetMsg() string
func (*CallResponse) ProtoMessage ¶
func (*CallResponse) ProtoMessage()
func (*CallResponse) Reset ¶
func (m *CallResponse) Reset()
func (*CallResponse) String ¶
func (m *CallResponse) String() string
func (*CallResponse) XXX_DiscardUnknown ¶
func (m *CallResponse) XXX_DiscardUnknown()
func (*CallResponse) XXX_Marshal ¶
func (m *CallResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CallResponse) XXX_Merge ¶
func (m *CallResponse) XXX_Merge(src proto.Message)
func (*CallResponse) XXX_Size ¶
func (m *CallResponse) XXX_Size() int
func (*CallResponse) XXX_Unmarshal ¶
func (m *CallResponse) XXX_Unmarshal(b []byte) error
type HelloClient ¶
type HelloClient interface {
Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error)
}
HelloClient is the client API for Hello service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHelloClient ¶
func NewHelloClient(cc *grpc.ClientConn) HelloClient
type HelloServer ¶
type HelloServer interface {
Call(context.Context, *CallRequest) (*CallResponse, error)
}
HelloServer is the server API for Hello service.
type UnimplementedHelloServer ¶
type UnimplementedHelloServer struct { }
UnimplementedHelloServer can be embedded to have forward compatible implementations.
func (*UnimplementedHelloServer) Call ¶
func (*UnimplementedHelloServer) Call(ctx context.Context, req *CallRequest) (*CallResponse, error)
Click to show internal directories.
Click to hide internal directories.