util

package
v0.0.0-...-2a83a9b Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Flags flags
View Source
var Logger *slog.Logger

Functions

func GetReqID

func GetReqID(ctx context.Context) string

func InitLogger

func InitLogger(c struct_logger.Config, out io.Writer, organization, project string)

func NewServer

func NewServer(handler http.Handler, port int) *http.Server

func ParseFlags

func ParseFlags()

func StartServer

func StartServer(server *http.Server) error

func StopServer

func StopServer(ctx context.Context, server *http.Server) error

func WaitForSignal

func WaitForSignal(ctx context.Context, signals ...os.Signal)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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