middleware

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const AccountContextKey contextKey = "account"
View Source
const UserContextKey contextKey = "user"

Variables

This section is empty.

Functions

func AccountAuthMiddleware

func AccountAuthMiddleware(jwtSigner *jwt.Signer) mux.MiddlewareFunc

func GetAccountFromContext

func GetAccountFromContext(ctx context.Context) (*models.Account, bool)

func GetUserFromContext

func GetUserFromContext(ctx context.Context) (*models.User, bool)

func IsOwnerSetupRequired

func IsOwnerSetupRequired() bool

func LoggingMiddleware

func LoggingMiddleware(logger *log.Logger) mux.MiddlewareFunc

func MarkOwnerSetupCompleted

func MarkOwnerSetupCompleted()

func OrganizationAuthMiddleware

func OrganizationAuthMiddleware(jwtSigner *jwt.Signer) mux.MiddlewareFunc

func OwnerSetupEnabled

func OwnerSetupEnabled() bool

func ResetOwnerSetupStateForTests

func ResetOwnerSetupStateForTests()

func ShowFullLogs

func ShowFullLogs() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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