auth

package
v0.0.0-...-0406d23 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const APIKeyContextKey contextKey = "APIKeyContextKey"
View Source
const AuthContextKey contextKey = "AuthContextKey"
View Source
const ClientIPContextKey contextKey = "ClientIPContextKey"
View Source
const GinContextKey contextKey = "GinContextKey"

Define the key you want to use to store the gin.Context in the request context

View Source
const LocaleContextKey contextKey = "LocaleContextKey"
View Source
const UserAgentContextKey contextKey = "UserAgentContextKey"

Variables

This section is empty.

Functions

func APIKey

func APIKey(ctx context.Context) *string

func Auth

func Auth(ctx context.Context) jwt.MapClaims

func ClientIP

func ClientIP(ctx context.Context) *string

func Locale

func Locale(ctx context.Context) *string

func Middleware

func Middleware(client *grpc.ClientConn) gin.HandlerFunc

func UserAgent

func UserAgent(ctx context.Context) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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