middlewares

package
v0.0.0-...-cff5d44 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessExcluded

func AccessExcluded(c *fiber.Ctx) error

func AccessGetToken

func AccessGetToken(ctx *fiber.Ctx) string

func AccessMustParse

func AccessMustParse(c *fiber.Ctx) *token.UserClaim

func AccessParse

func AccessParse(c *fiber.Ctx) *token.UserClaim

func AccessParseToken

func AccessParseToken(c *fiber.Ctx) string

func AccessTokenRemoveCookie

func AccessTokenRemoveCookie(ctx *fiber.Ctx, domain string)

func AccessTokenSetCookie

func AccessTokenSetCookie(ctx *fiber.Ctx, t string, domain string)

func IpAddr

func IpAddr(c *fiber.Ctx) error

func IpMustParse

func IpMustParse(c *fiber.Ctx) string

func Metric

func Metric(durationM metric.Float64Histogram, reqM metric.Int64Counter, tracer trace.Tracer) fiber.Handler

func NewAccessInitialize

func NewAccessInitialize(authUseCase *usecase.AuthUseCase, trc trace.Tracer, isUnverified bool) fiber.Handler

func NewAccessRequired

func NewAccessRequired(isUnverified bool) fiber.Handler

func NewDeviceId

func NewDeviceId(domain string) fiber.Handler

func NewI18n

func NewI18n(locales []string) fiber.Handler

func NewRefreshInitialize

func NewRefreshInitialize(authUseCase *usecase.AuthUseCase, trc trace.Tracer) fiber.Handler

func NewTurnstile

func NewTurnstile(secret string, skip bool) fiber.Handler

func ParseLocale

func ParseLocale(ctx *fiber.Ctx) string

func RefreshExcluded

func RefreshExcluded(c *fiber.Ctx) error

func RefreshMustParse

func RefreshMustParse(c *fiber.Ctx) *token.UserClaim

func RefreshParse

func RefreshParse(c *fiber.Ctx) *token.UserClaim

func RefreshParseToken

func RefreshParseToken(c *fiber.Ctx) string

func RefreshRequired

func RefreshRequired(c *fiber.Ctx) error

func RefreshTokenRemoveCookie

func RefreshTokenRemoveCookie(ctx *fiber.Ctx, domain string)

func RefreshTokenSetCookie

func RefreshTokenSetCookie(ctx *fiber.Ctx, t string, domain string)

func VerifyExcluded

func VerifyExcluded(ctx *fiber.Ctx) error

func VerifyRequired

func VerifyRequired(ctx *fiber.Ctx) error

func VerifyTokenParse

func VerifyTokenParse(ctx *fiber.Ctx) string

func VerifyTokenRemove

func VerifyTokenRemove(ctx *fiber.Ctx, domain string)

func VerifyTokenSet

func VerifyTokenSet(ctx *fiber.Ctx, token string, domain string)

Types

type ContextKey

type ContextKey string
const DeviceIDKey ContextKey = "deviceId"

Jump to

Keyboard shortcuts

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