tkPresentationMiddleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogHandlerLogLevelEnvVarName string = "LOG_LEVEL"
)
View Source
const (
	PanicHandlerTrustedIpsEnvVarName string = "TRUSTED_IPS"
)

Variables

This section is empty.

Functions

func ApiPanicHandler

func ApiPanicHandler(subsequentHandler echo.HandlerFunc) echo.HandlerFunc

func CliPanicHandler

func CliPanicHandler()

@attention CliPanicHandler MUST be used as a defer statement.

Types

type LogHandler

type LogHandler struct {
}

func (LogHandler) Init

func (logHandler LogHandler) Init()

func (LogHandler) ReadLevel

func (LogHandler) ReadLevel() string

func (LogHandler) SetLevel

func (LogHandler) SetLevel(logLevel string)

type PanicReport

type PanicReport struct {
	RecoverErr         error
	StackTrace         string
	RequestUri         string
	RequesterIpAddress string
}

Jump to

Keyboard shortcuts

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