Documentation
¶
Index ¶
- Constants
- func AccountAuthMiddleware(jwtSigner *jwt.Signer) mux.MiddlewareFunc
- func GetAccountFromContext(ctx context.Context) (*models.Account, bool)
- func GetUserFromContext(ctx context.Context) (*models.User, bool)
- func IsOwnerSetupRequired() bool
- func LoggingMiddleware(logger *log.Logger) mux.MiddlewareFunc
- func MarkOwnerSetupCompleted()
- func OrganizationAuthMiddleware(jwtSigner *jwt.Signer) mux.MiddlewareFunc
- func OwnerSetupEnabled() bool
- func ResetOwnerSetupStateForTests()
- func ShowFullLogs() bool
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 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.
Click to show internal directories.
Click to hide internal directories.