grpc: google.golang.org/grpc/examples/features/proto/echo Index | Files

package echo

import "google.golang.org/grpc/examples/features/proto/echo"

Index

Package Files

echo.pb.go

func RegisterEchoServer Uses

func RegisterEchoServer(s *grpc.Server, srv EchoServer)

type EchoClient Uses

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 Uses

func NewEchoClient(cc *grpc.ClientConn) EchoClient

type EchoRequest Uses

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 Uses

func (*EchoRequest) Descriptor() ([]byte, []int)

func (*EchoRequest) GetMessage Uses

func (m *EchoRequest) GetMessage() string

func (*EchoRequest) ProtoMessage Uses

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) Reset Uses

func (m *EchoRequest) Reset()

func (*EchoRequest) String Uses

func (m *EchoRequest) String() string

func (*EchoRequest) XXX_DiscardUnknown Uses

func (m *EchoRequest) XXX_DiscardUnknown()

func (*EchoRequest) XXX_Marshal Uses

func (m *EchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EchoRequest) XXX_Merge Uses

func (dst *EchoRequest) XXX_Merge(src proto.Message)

func (*EchoRequest) XXX_Size Uses

func (m *EchoRequest) XXX_Size() int

func (*EchoRequest) XXX_Unmarshal Uses

func (m *EchoRequest) XXX_Unmarshal(b []byte) error

type EchoResponse Uses

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 Uses

func (*EchoResponse) Descriptor() ([]byte, []int)

func (*EchoResponse) GetMessage Uses

func (m *EchoResponse) GetMessage() string

func (*EchoResponse) ProtoMessage Uses

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) Reset Uses

func (m *EchoResponse) Reset()

func (*EchoResponse) String Uses

func (m *EchoResponse) String() string

func (*EchoResponse) XXX_DiscardUnknown Uses

func (m *EchoResponse) XXX_DiscardUnknown()

func (*EchoResponse) XXX_Marshal Uses

func (m *EchoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EchoResponse) XXX_Merge Uses

func (dst *EchoResponse) XXX_Merge(src proto.Message)

func (*EchoResponse) XXX_Size Uses

func (m *EchoResponse) XXX_Size() int

func (*EchoResponse) XXX_Unmarshal Uses

func (m *EchoResponse) XXX_Unmarshal(b []byte) error

type EchoServer Uses

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 Uses

type Echo_BidirectionalStreamingEchoClient interface {
    Send(*EchoRequest) error
    Recv() (*EchoResponse, error)
    grpc.ClientStream
}

type Echo_BidirectionalStreamingEchoServer Uses

type Echo_BidirectionalStreamingEchoServer interface {
    Send(*EchoResponse) error
    Recv() (*EchoRequest, error)
    grpc.ServerStream
}

type Echo_ClientStreamingEchoClient Uses

type Echo_ClientStreamingEchoClient interface {
    Send(*EchoRequest) error
    CloseAndRecv() (*EchoResponse, error)
    grpc.ClientStream
}

type Echo_ClientStreamingEchoServer Uses

type Echo_ClientStreamingEchoServer interface {
    SendAndClose(*EchoResponse) error
    Recv() (*EchoRequest, error)
    grpc.ServerStream
}

type Echo_ServerStreamingEchoClient Uses

type Echo_ServerStreamingEchoClient interface {
    Recv() (*EchoResponse, error)
    grpc.ClientStream
}

type Echo_ServerStreamingEchoServer Uses

type Echo_ServerStreamingEchoServer interface {
    Send(*EchoResponse) error
    grpc.ServerStream
}

Package echo imports 5 packages (graph) and is imported by 1 packages. Updated 2018-12-12. Refresh now. Tools for package owners.