example

package
v0.0.0-...-db8b2aa Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package example is a generated protocol buffer package.

It is generated from these files:

example.proto

It has these top-level messages:

InputMessage
OutputMessage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExampleServiceServer

func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)

Types

type ExampleServiceClient

type ExampleServiceClient interface {
	Echo(ctx context.Context, in *InputMessage, opts ...grpc.CallOption) (*OutputMessage, error)
	EchoStreamOut(ctx context.Context, in *InputMessage, opts ...grpc.CallOption) (ExampleService_EchoStreamOutClient, error)
	EchoStreamIn(ctx context.Context, opts ...grpc.CallOption) (ExampleService_EchoStreamInClient, error)
	EchoStreamInOut(ctx context.Context, opts ...grpc.CallOption) (ExampleService_EchoStreamInOutClient, error)
}

func NewExampleServiceClient

func NewExampleServiceClient(cc *grpc.ClientConn) ExampleServiceClient

type ExampleService_EchoStreamInClient

type ExampleService_EchoStreamInClient interface {
	Send(*InputMessage) error
	CloseAndRecv() (*OutputMessage, error)
	grpc.ClientStream
}

type ExampleService_EchoStreamInOutClient

type ExampleService_EchoStreamInOutClient interface {
	Send(*InputMessage) error
	Recv() (*OutputMessage, error)
	grpc.ClientStream
}

type ExampleService_EchoStreamInOutServer

type ExampleService_EchoStreamInOutServer interface {
	Send(*OutputMessage) error
	Recv() (*InputMessage, error)
	grpc.ServerStream
}

type ExampleService_EchoStreamInServer

type ExampleService_EchoStreamInServer interface {
	SendAndClose(*OutputMessage) error
	Recv() (*InputMessage, error)
	grpc.ServerStream
}

type ExampleService_EchoStreamOutClient

type ExampleService_EchoStreamOutClient interface {
	Recv() (*OutputMessage, error)
	grpc.ClientStream
}

type ExampleService_EchoStreamOutServer

type ExampleService_EchoStreamOutServer interface {
	Send(*OutputMessage) error
	grpc.ServerStream
}

type InputMessage

type InputMessage struct {
	Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}

func (*InputMessage) Descriptor

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

func (*InputMessage) ProtoMessage

func (*InputMessage) ProtoMessage()

func (*InputMessage) Reset

func (m *InputMessage) Reset()

func (*InputMessage) String

func (m *InputMessage) String() string

type OutputMessage

type OutputMessage struct {
	Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}

func (*OutputMessage) Descriptor

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

func (*OutputMessage) ProtoMessage

func (*OutputMessage) ProtoMessage()

func (*OutputMessage) Reset

func (m *OutputMessage) Reset()

func (*OutputMessage) String

func (m *OutputMessage) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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