Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecovererMiddleware ¶
RecovererMiddleware recovers panics in an HTTP handler and logs the panic via Chi.
Types ¶
type RequestLogEntry ¶
RequestLogEntry implements Chi middleware.LogEntry to log requests and panics via Apex log.
func (RequestLogEntry) Panic ¶
func (rle RequestLogEntry) Panic(val interface{}, stack []byte)
type RequestLogger ¶
type RequestLogger struct{}
RequestLogger implements Chi middleware.LogFormatter to log requests via Apex log.
func (RequestLogger) NewLogEntry ¶
func (rl RequestLogger) NewLogEntry(req *http.Request) middleware.LogEntry
type Route ¶
type Route struct { Method string Path string Middlewares []func(http.Handler) http.Handler Handler http.HandlerFunc }
Route is a single route that has a handler and a list of middleware for the handler.
Click to show internal directories.
Click to hide internal directories.