middleware

package
v0.0.0-...-db9179b Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TraceID = "traceID"
	Span    = "span"
)
View Source
const (
	AuthHeader = "Authorization"
)

Variables

This section is empty.

Functions

func Auth

func Auth() gin.HandlerFunc

func HeaderToContext

func HeaderToContext() gin.HandlerFunc

func Trace

func Trace(serviceName string) gin.HandlerFunc

func TrimToken

func TrimToken(bearerToken string) string

Types

type Header struct {
	Auth    string `header:"Authorization"`
	TraceID string `header:"TraceID"`
}

Jump to

Keyboard shortcuts

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