server

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGraceful

func RunGraceful(app *fiber.App, addr string, timeout time.Duration,
	cleanup ...func(ctx context.Context) error) error

RunGraceful starts app and blocks until SIGINT/SIGTERM (or a listen error), then shuts the server down within timeout and runs the cleanup hooks in order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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