proto

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 7 Imported by: 0

README

proto

Protocol buffer definitions for examples.

Compilation

Execute the following command under the root directory of the project.

$ protoc --go_out=plugins=grpc,paths=source_relative:. ./examples/proto/*.proto

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGreetingServer

func RegisterGreetingServer(s *grpc.Server, srv GreetingServer)

Types

type GreetingClient

type GreetingClient interface {
	Greet(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*wrappers.StringValue, error)
}

GreetingClient is the client API for Greeting service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGreetingClient

func NewGreetingClient(cc *grpc.ClientConn) GreetingClient

type GreetingServer

type GreetingServer interface {
	Greet(context.Context, *empty.Empty) (*wrappers.StringValue, error)
}

GreetingServer is the server API for Greeting service.

Jump to

Keyboard shortcuts

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