echo

package
v1.0.1-0...-a8ab2d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL