Documentation ¶
Index ¶
- Variables
- func RegisterPingServiceServer(s *grpc.Server, srv PingServiceServer)
- type PingServiceClient
- type PingServiceServer
- type PingService_PingStreamClient
- type PingService_PingStreamServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetMsg() string
- func (m *Request) Marshal() (dAtA []byte, err error)
- func (m *Request) MarshalTo(dAtA []byte) (int, error)
- func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) Size() (n int)
- func (m *Request) String() string
- func (m *Request) Unmarshal(dAtA []byte) error
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetMsg() string
- func (m *Response) Marshal() (dAtA []byte, err error)
- func (m *Response) MarshalTo(dAtA []byte) (int, error)
- func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) Size() (n int)
- func (m *Response) String() string
- func (m *Response) Unmarshal(dAtA []byte) error
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type UnimplementedPingServiceServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterPingServiceServer ¶
func RegisterPingServiceServer(s *grpc.Server, srv PingServiceServer)
Types ¶
type PingServiceClient ¶
type PingServiceClient interface { Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) PingStream(ctx context.Context, opts ...grpc.CallOption) (PingService_PingStreamClient, error) }
PingServiceClient is the client API for PingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPingServiceClient ¶
func NewPingServiceClient(cc *grpc.ClientConn) PingServiceClient
type PingServiceServer ¶
type PingServiceServer interface { Ping(context.Context, *Request) (*Response, error) PingStream(PingService_PingStreamServer) error }
PingServiceServer is the server API for PingService service.
type Request ¶
type Request struct {
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
}
func (*Request) Descriptor ¶
func (*Request) MarshalToSizedBuffer ¶ added in v0.16.0
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶ added in v0.16.0
func (*Request) XXX_Unmarshal ¶ added in v0.16.0
type Response ¶
type Response struct {
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
}
func (*Response) Descriptor ¶
func (*Response) MarshalToSizedBuffer ¶ added in v0.16.0
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶ added in v0.16.0
func (*Response) XXX_Unmarshal ¶ added in v0.16.0
type UnimplementedPingServiceServer ¶ added in v0.16.0
type UnimplementedPingServiceServer struct { }
UnimplementedPingServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedPingServiceServer) PingStream ¶ added in v0.16.0
func (*UnimplementedPingServiceServer) PingStream(srv PingService_PingStreamServer) error
Click to show internal directories.
Click to hide internal directories.