wfiber

package
v0.0.0-...-2ec8670 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

wfiber is a wrapped fiber

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeLoggerLevel

func ChangeLoggerLevel(hack utility.Hack, wlogger *wlog.Logger) fiber.Handler

func GormTX

func GormTX(db *gorm.DB, skip func(ctx *fiber.Ctx) bool, wlogger *wlog.Logger) fiber.Handler

GormTX

若 skip == nil, 所有條件都會使用 tx 若 skip != nil, 滿足條件的, 將不會啟動 tx

func O11YLogger

func O11YLogger(debug bool, enableTrace bool, wlogger *wlog.Logger) (fiber.Handler, fiber.Handler)

func O11YMetric

func O11YMetric(svcName string) fiber.Handler

func O11YTrace

func O11YTrace(enableTrace bool) fiber.Handler

func ShowRoutes

func ShowRoutes(router *fiber.App)

Types

This section is empty.

Jump to

Keyboard shortcuts

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