middleware

package
v0.0.0-...-711136c Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ContextTracerKey = "TraceContext"

Variables

This section is empty.

Functions

func Auth

func Auth(logger *zap.Logger, authFunc func(ctx context.Context, token string) interface{}) gin.HandlerFunc

func ContextWithSpan

func ContextWithSpan(c *gin.Context) (context.Context, bool)

ContextWithSpan 返回context

func Cors

func Cors() gin.HandlerFunc

跨域

func Log

func Log(logger *zap.Logger) gin.HandlerFunc

func Trace

func Trace(logger *zap.Logger) gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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