proto

package
v0.0.0-...-e41513e Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

echo.proto

It has these top-level messages:

EchoReq
EchoRsp

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEchoServiceServer

func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)

Types

type EchoReq

type EchoReq struct {
	EchoData string `protobuf:"bytes,1,opt,name=echo_data,json=echoData" json:"echo_data,omitempty"`
}

func (*EchoReq) Descriptor

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

func (*EchoReq) GetEchoData

func (m *EchoReq) GetEchoData() string

func (*EchoReq) ProtoMessage

func (*EchoReq) ProtoMessage()

func (*EchoReq) Reset

func (m *EchoReq) Reset()

func (*EchoReq) String

func (m *EchoReq) String() string

type EchoRsp

type EchoRsp struct {
	EchoData string `protobuf:"bytes,1,opt,name=echo_data,json=echoData" json:"echo_data,omitempty"`
}

func (*EchoRsp) Descriptor

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

func (*EchoRsp) GetEchoData

func (m *EchoRsp) GetEchoData() string

func (*EchoRsp) ProtoMessage

func (*EchoRsp) ProtoMessage()

func (*EchoRsp) Reset

func (m *EchoRsp) Reset()

func (*EchoRsp) String

func (m *EchoRsp) String() string

type EchoServiceClient

type EchoServiceClient interface {
	Echo(ctx context.Context, in *EchoReq, opts ...grpc.CallOption) (*EchoRsp, error)
}

func NewEchoServiceClient

func NewEchoServiceClient(cc *grpc.ClientConn) EchoServiceClient

type EchoServiceServer

type EchoServiceServer interface {
	Echo(context.Context, *EchoReq) (*EchoRsp, error)
}

Jump to

Keyboard shortcuts

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