wgin

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: 13 Imported by: 0

Documentation

Overview

wgin is a wrapped gin

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeLoggerLevel

func ChangeLoggerLevel(hack utility.Hack, wlogger *wlog.Logger) gin.HandlerFunc

func GormTX

func GormTX(db *gorm.DB, skip func(ctx *gin.Context) bool, wlogger *wlog.Logger) gin.HandlerFunc

GormTX

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

func O11YLogger

func O11YLogger(debug bool, enableTrace bool, Logger *wlog.Logger) (gin.HandlerFunc, gin.HandlerFunc)

func O11YMetric

func O11YMetric(svcName string) gin.HandlerFunc

func O11YTrace

func O11YTrace(enableTrace bool) func(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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