httpserver

package
v2.0.0-beta9 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware(config ...cors.Config) gin.HandlerFunc

func LoggerMiddleware

func LoggerMiddleware(getUid func(c *gin.Context) string, logger zerolog.Logger) gin.HandlerFunc

func New

func New(lc lifecycle.Lifecycle, cfg Config, handlers ...gin.HandlerFunc) *gin.Engine

Types

type Config

type Config struct {
	Address    string `koanf:"address"`
	Production bool   `koanf:"production"`
}

Jump to

Keyboard shortcuts

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