lifecycle

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShutdownGRPCServer

func ShutdownGRPCServer(server *grpc.Server)

ShutdownGRPCServer останавливает gRPC сервер с graceful shutdown

func ShutdownHTTPServer

func ShutdownHTTPServer(cfg *config.Config, server *http.Server)

ShutdownHTTPServer останавливает HTTP сервер с graceful shutdown

func StartGRPCServer

func StartGRPCServer(cfg *config.Config, server *grpc.Server, lis net.Listener) error

StartGRPCServer запускает gRPC сервер с обработкой сигналов завершения

func StartHTTPServer

func StartHTTPServer(cfg *config.Config, server *http.Server) error

StartHTTPServer запускает HTTP сервер с обработкой сигналов завершения

func WaitForShutdownSignal

func WaitForShutdownSignal()

WaitForShutdownSignal ожидает сигнал завершения программы

Types

This section is empty.

Jump to

Keyboard shortcuts

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