Documentation ¶
Index ¶
- Variables
- func RegisterEchoerServer(s *grpc.Server, srv EchoerServer)
- type EchoReply
- func (*EchoReply) Descriptor() ([]byte, []int)
- func (m *EchoReply) Marshal() (dAtA []byte, err error)
- func (m *EchoReply) MarshalTo(dAtA []byte) (int, error)
- func (m *EchoReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EchoReply) ProtoMessage()
- func (m *EchoReply) Reset()
- func (m *EchoReply) Size() (n int)
- func (m *EchoReply) String() string
- func (m *EchoReply) Unmarshal(dAtA []byte) error
- func (m *EchoReply) XXX_DiscardUnknown()
- func (m *EchoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EchoReply) XXX_Merge(src proto.Message)
- func (m *EchoReply) XXX_Size() int
- func (m *EchoReply) XXX_Unmarshal(b []byte) error
- type EchoRequest
- func (*EchoRequest) Descriptor() ([]byte, []int)
- func (m *EchoRequest) Marshal() (dAtA []byte, err error)
- func (m *EchoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *EchoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EchoRequest) ProtoMessage()
- func (m *EchoRequest) Reset()
- func (m *EchoRequest) Size() (n int)
- func (m *EchoRequest) String() string
- func (m *EchoRequest) Unmarshal(dAtA []byte) error
- func (m *EchoRequest) XXX_DiscardUnknown()
- func (m *EchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EchoRequest) XXX_Merge(src proto.Message)
- func (m *EchoRequest) XXX_Size() int
- func (m *EchoRequest) XXX_Unmarshal(b []byte) error
- type EchoerClient
- type EchoerServer
- type UnimplementedEchoerServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterEchoerServer ¶
func RegisterEchoerServer(s *grpc.Server, srv EchoerServer)
Types ¶
type EchoReply ¶
type EchoReply struct {
Reply string `protobuf:"bytes,1,opt,name=reply,proto3" json:"reply,omitempty"`
}
func (*EchoReply) Descriptor ¶
func (*EchoReply) MarshalToSizedBuffer ¶
func (*EchoReply) ProtoMessage ¶
func (*EchoReply) ProtoMessage()
func (*EchoReply) XXX_DiscardUnknown ¶
func (m *EchoReply) XXX_DiscardUnknown()
func (*EchoReply) XXX_Marshal ¶
func (*EchoReply) XXX_Unmarshal ¶
type EchoRequest ¶
type EchoRequest struct {
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
}
func (*EchoRequest) Descriptor ¶
func (*EchoRequest) Descriptor() ([]byte, []int)
func (*EchoRequest) Marshal ¶
func (m *EchoRequest) Marshal() (dAtA []byte, err error)
func (*EchoRequest) MarshalToSizedBuffer ¶
func (m *EchoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EchoRequest) ProtoMessage ¶
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) Reset ¶
func (m *EchoRequest) Reset()
func (*EchoRequest) Size ¶
func (m *EchoRequest) Size() (n int)
func (*EchoRequest) String ¶
func (m *EchoRequest) String() string
func (*EchoRequest) Unmarshal ¶
func (m *EchoRequest) Unmarshal(dAtA []byte) error
func (*EchoRequest) XXX_DiscardUnknown ¶
func (m *EchoRequest) XXX_DiscardUnknown()
func (*EchoRequest) XXX_Marshal ¶
func (m *EchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EchoRequest) XXX_Merge ¶
func (m *EchoRequest) XXX_Merge(src proto.Message)
func (*EchoRequest) XXX_Size ¶
func (m *EchoRequest) XXX_Size() int
func (*EchoRequest) XXX_Unmarshal ¶
func (m *EchoRequest) XXX_Unmarshal(b []byte) error
type EchoerClient ¶
type EchoerClient interface {
Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoReply, error)
}
EchoerClient is the client API for Echoer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEchoerClient ¶
func NewEchoerClient(cc *grpc.ClientConn) EchoerClient
type EchoerServer ¶
type EchoerServer interface {
Echo(context.Context, *EchoRequest) (*EchoReply, error)
}
EchoerServer is the server API for Echoer service.
type UnimplementedEchoerServer ¶
type UnimplementedEchoerServer struct { }
UnimplementedEchoerServer can be embedded to have forward compatible implementations.
func (*UnimplementedEchoerServer) Echo ¶
func (*UnimplementedEchoerServer) Echo(ctx context.Context, req *EchoRequest) (*EchoReply, error)
Click to show internal directories.
Click to hide internal directories.