apiconf

package
v0.0.0-...-1329338 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiConfigure

func ApiConfigure(connPool *pgxpool.Pool) func(http.Handler) http.Handler

func DBUrlConfig

func DBUrlConfig() string

func Logger

func Logger(next http.Handler) http.Handler

func LoggerConfig

func LoggerConfig() *slog.Handler

func SetupPool

func SetupPool() (*pgxpool.Pool, error)

Types

type ApiConfig

type ApiConfig struct {
	ConnPool *pgxpool.Pool
	Validate *validator.Validate
}

func GetConfig

func GetConfig(r *http.Request) ApiConfig

Jump to

Keyboard shortcuts

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