control

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNodeShuttingDown            = errors.New("node is shutting down")
	ErrSomeRequestsAreStillRunning = errors.New("some requests are still running")
)

Functions

This section is empty.

Types

type GracefulStop

type GracefulStop struct {
	// contains filtered or unexported fields
}

func NewGracefulStop

func NewGracefulStop() *GracefulStop

func (*GracefulStop) Acquire

func (s *GracefulStop) Acquire() (Release, error)

func (*GracefulStop) CloseAndWait

func (s *GracefulStop) CloseAndWait() error

func (*GracefulStop) GrpcStreamServerInterceptor

func (s *GracefulStop) GrpcStreamServerInterceptor() grpc.StreamServerInterceptor

func (*GracefulStop) GrpcUnaryServerInterceptor

func (s *GracefulStop) GrpcUnaryServerInterceptor() grpc.UnaryServerInterceptor

type Release

type Release func()

Jump to

Keyboard shortcuts

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