graceful

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcListener

func NewGrpcListener(ctx context.Context, address string, server *grpc.Server) error

NewGrpcListener listens for incoming gRPC requests.

func ServeWithContext

func ServeWithContext(ctx context.Context, server *grpc.Server, listener net.Listener) error

ServeWithContext is a wrapper around the Serve function which also implements context cancellation and graceful shutdown.

Types

This section is empty.

Jump to

Keyboard shortcuts

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