Help us shape the future of Go! Take the 2026 Go Developer Survey

grpcserver

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 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