Back to

Package apipb

Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module:


func FileDescriptorSet

func FileDescriptorSet() *descriptor.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterGreeterServer

func RegisterGreeterServer(s prpc.Registrar, srv GreeterServer)

type GreeterClient

type GreeterClient interface {
	SayHi(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)

GreeterClient is the client API for Greeter service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to

func NewGreeterClient

func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient

func NewGreeterPRPCClient

func NewGreeterPRPCClient(client *prpc.Client) GreeterClient

type GreeterServer

type GreeterServer interface {
	SayHi(context.Context, *empty.Empty) (*empty.Empty, error)

GreeterServer is the server API for Greeter service.

type UnimplementedGreeterServer

type UnimplementedGreeterServer struct {

UnimplementedGreeterServer can be embedded to have forward compatible implementations.

func (*UnimplementedGreeterServer) SayHi

func (*UnimplementedGreeterServer) SayHi(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier