middleware

package
v0.0.0-...-f9aa2b8 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BearerAuthorizationHeader = "Authorization" // Bearer token, ID Token or Access Token
	UIDContextKey             = "uid"
	EmailContextKey           = "email"
)

Variables

This section is empty.

Functions

func AuthAPIKey

func AuthAPIKey(secret string) gin.HandlerFunc

func AuthZ

func AuthZ(auth *auth.Client) gin.HandlerFunc

func Log

func Log(c context.Context) *log.Entry

func LogError

func LogError(service string) gin.HandlerFunc

LogError middleware ensures any non-200 codes are logged for visibility on issues.

func Trace

func Trace(service string) 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