package
1.5.1
Repository: https://github.com/staticbackendhq/core.git
Documentation: pkg.go.dev

# Functions

Chain creates a request pipeline from which the Middleware are chained together and h is the last Handler executed.
Cors enables calls via remote origin to handle external JavaScript calls mainly.
Extract extracts the DatabaseConfig and Auth for the request.
RequireAuth validates that a session token is valid.
RequireRoot validates that the token provided is for a "root" user.
ValidateAuthKey validates a session token.
ValidateRootToken validates that a session token has root level permissions.
WithDB validates the presence of the "SB-PUBLIC-KEY" and fetches the proper DatabaseConfig for this Tenant so the rest of the pipeline can executes actions on the right database.

# Constants

Context keys that are needed for all requests pipeline.
Context keys that are needed for all requests pipeline.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
Middleware is a standard http.Handler.