sgsr

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 7 Imported by: 0

README

Simple Graceful Sever Runner

Graceful shutdown rapper for server

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger() *slog.Logger

Types

type App

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

func NewApp

func NewApp(config Config) *App

func (App) Run

func (a App) Run()

type Config

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

func NewConfig

func NewConfig(l *slog.Logger, app *fiber.App, addr string) Config

func (Config) WithContext

func (c Config) WithContext(ctx context.Context) Config

Jump to

Keyboard shortcuts

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