Documentation
¶
Index ¶
Constants ¶
View Source
const (
LogHandlerLogLevelEnvVarName string = "LOG_LEVEL"
)
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 ErrorStatusHandler ¶ added in v0.4.4
type ErrorStatusHandler struct {
// contains filtered or unexported fields
}
func NewErrorStatusHandler ¶ added in v0.4.4
func NewErrorStatusHandler( errorStatusCodesMap map[error]tkValueObject.HttpStatusCode, ) ErrorStatusHandler
func (ErrorStatusHandler) ApiHandler ¶ added in v0.4.4
func (handler ErrorStatusHandler) ApiHandler( subsequentHandler echo.HandlerFunc, ) echo.HandlerFunc
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)
Click to show internal directories.
Click to hide internal directories.