Documentation ¶
Overview ¶
Package echo is a generated protocol buffer package.
It is generated from these files:
examples/rpcbench2/echo.proto
It has these top-level messages:
EchoRequest EchoResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEchoService ¶
func RegisterEchoService(service EchoService)
Types ¶
type EchoRequest ¶
type EchoRequest struct { Payload *string `protobuf:"bytes,1,req,name=payload" json:"payload,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*EchoRequest) GetPayload ¶
func (m *EchoRequest) GetPayload() string
func (*EchoRequest) ProtoMessage ¶
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) Reset ¶
func (m *EchoRequest) Reset()
func (*EchoRequest) String ¶
func (m *EchoRequest) String() string
type EchoResponse ¶
type EchoResponse struct { Payload *string `protobuf:"bytes,2,req,name=payload" json:"payload,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*EchoResponse) GetPayload ¶
func (m *EchoResponse) GetPayload() string
func (*EchoResponse) ProtoMessage ¶
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) Reset ¶
func (m *EchoResponse) Reset()
func (*EchoResponse) String ¶
func (m *EchoResponse) String() string
type EchoService ¶
type EchoService interface {
Echo(req *EchoRequest, resp *EchoResponse) error
}
type EchoServiceClient ¶
type EchoServiceClient struct {
// contains filtered or unexported fields
}
func NewEchoServiceClient ¶
func NewEchoServiceClient(conn io.ReadWriteCloser) *EchoServiceClient
func (*EchoServiceClient) Close ¶
func (c *EchoServiceClient) Close() error
func (*EchoServiceClient) Echo ¶
func (c *EchoServiceClient) Echo(req *EchoRequest, resp *EchoResponse) error
Click to show internal directories.
Click to hide internal directories.