scriba_chi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCtx

func FromCtx(ctx context.Context, fallback *scriba.Logger) *scriba.Logger

FromCtx pega o logger do contexto ou retorna o fallback.

func Recoverer

func Recoverer(base *scriba.Logger) func(next http.Handler) http.Handler

Recoverer captura panic e loga via scriba.

func RequestLogger

func RequestLogger(base *scriba.Logger) func(next http.Handler) http.Handler

RequestLogger cria um middleware do chi usando scriba.

func WithLogger

func WithLogger(ctx context.Context, l *scriba.Logger) context.Context

WithLogger injeta o logger no contexto.

Types

This section is empty.

Jump to

Keyboard shortcuts

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