grpcserver

package
v0.0.0-...-9bdbb14 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupGRPC

func SetupGRPC(ctx context.Context, r Registrar, listenAddr string, errCh chan<- error) (string, error)

SetupGRPC opens a listener and serves a given Registrar's APIs on a gRPC server and returns the listener's address or an error.

Types

type Registrar

type Registrar interface {
	Register(*grpc.Server)
}

Registrar is an interface for registering APIs on a gRPC server.

Jump to

Keyboard shortcuts

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