import "google.golang.org/grpc/examples/features/proto/echo"
func RegisterEchoServer(s *grpc.Server, srv EchoServer)
type EchoClient interface { // UnaryEcho is unary echo. UnaryEcho(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) // ServerStreamingEcho is server side streaming. ServerStreamingEcho(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (Echo_ServerStreamingEchoClient, error) // ClientStreamingEcho is client side streaming. ClientStreamingEcho(ctx context.Context, opts ...grpc.CallOption) (Echo_ClientStreamingEchoClient, error) // BidirectionalStreamingEcho is bidi streaming. BidirectionalStreamingEcho(ctx context.Context, opts ...grpc.CallOption) (Echo_BidirectionalStreamingEchoClient, error) }
EchoClient is the client API for Echo service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEchoClient(cc *grpc.ClientConn) EchoClient
type EchoRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
EchoRequest is the request for echo.
func (*EchoRequest) Descriptor() ([]byte, []int)
func (m *EchoRequest) GetMessage() string
func (*EchoRequest) ProtoMessage()
func (m *EchoRequest) Reset()
func (m *EchoRequest) String() string
func (m *EchoRequest) XXX_DiscardUnknown()
func (m *EchoRequest) XXX_Merge(src proto.Message)
func (m *EchoRequest) XXX_Size() int
func (m *EchoRequest) XXX_Unmarshal(b []byte) error
type EchoResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
EchoResponse is the response for echo.
func (*EchoResponse) Descriptor() ([]byte, []int)
func (m *EchoResponse) GetMessage() string
func (*EchoResponse) ProtoMessage()
func (m *EchoResponse) Reset()
func (m *EchoResponse) String() string
func (m *EchoResponse) XXX_DiscardUnknown()
func (m *EchoResponse) XXX_Merge(src proto.Message)
func (m *EchoResponse) XXX_Size() int
func (m *EchoResponse) XXX_Unmarshal(b []byte) error
type EchoServer interface { // UnaryEcho is unary echo. UnaryEcho(context.Context, *EchoRequest) (*EchoResponse, error) // ServerStreamingEcho is server side streaming. ServerStreamingEcho(*EchoRequest, Echo_ServerStreamingEchoServer) error // ClientStreamingEcho is client side streaming. ClientStreamingEcho(Echo_ClientStreamingEchoServer) error // BidirectionalStreamingEcho is bidi streaming. BidirectionalStreamingEcho(Echo_BidirectionalStreamingEchoServer) error }
EchoServer is the server API for Echo service.
type Echo_BidirectionalStreamingEchoClient interface { Send(*EchoRequest) error Recv() (*EchoResponse, error) grpc.ClientStream }
type Echo_BidirectionalStreamingEchoServer interface { Send(*EchoResponse) error Recv() (*EchoRequest, error) grpc.ServerStream }
type Echo_ClientStreamingEchoClient interface { Send(*EchoRequest) error CloseAndRecv() (*EchoResponse, error) grpc.ClientStream }
type Echo_ClientStreamingEchoServer interface { SendAndClose(*EchoResponse) error Recv() (*EchoRequest, error) grpc.ServerStream }
type Echo_ServerStreamingEchoClient interface { Recv() (*EchoResponse, error) grpc.ClientStream }
type Echo_ServerStreamingEchoServer interface { Send(*EchoResponse) error grpc.ServerStream }
type UnimplementedEchoServer struct { }
UnimplementedEchoServer can be embedded to have forward compatible implementations.
func (*UnimplementedEchoServer) BidirectionalStreamingEcho(srv Echo_BidirectionalStreamingEchoServer) error
func (*UnimplementedEchoServer) ClientStreamingEcho(srv Echo_ClientStreamingEchoServer) error
func (*UnimplementedEchoServer) ServerStreamingEcho(req *EchoRequest, srv Echo_ServerStreamingEchoServer) error
func (*UnimplementedEchoServer) UnaryEcho(ctx context.Context, req *EchoRequest) (*EchoResponse, error)
Package echo imports 7 packages (graph) and is imported by 1 packages. Updated 2019-09-18. Refresh now. Tools for package owners.