Documentation
¶
Index ¶
- Constants
- func Chain(h http.Handler, middlewares ...Middleware) http.Handler
- func Extract(r *http.Request, withAuth bool) (internal.BaseConfig, internal.Auth, error)
- func ValidateAuthKey(datastore internal.Persister, volatile internal.PubSuber, ctx context.Context, ...) (internal.Auth, error)
- func ValidateRootToken(datastore internal.Persister, base, token string) (internal.Token, error)
- type BillingPortalGetter
- type ContextKey
- type Middleware
Constants ¶
View Source
const (
RootRole = 100
)
Variables ¶
This section is empty.
Functions ¶
func ValidateAuthKey ¶
Types ¶
type BillingPortalGetter ¶ added in v1.4.0
type Middleware ¶
func Cors ¶
func Cors() Middleware
Cors enables calls via remote origin to handle external JavaScript calls mainly.
func RequireAuth ¶
func RequireAuth(datastore internal.Persister, volatile internal.PubSuber) Middleware
func RequireRoot ¶
func RequireRoot(datastore internal.Persister, volatile internal.PubSuber) Middleware
func WithDB ¶
func WithDB(datastore internal.Persister, volatile internal.PubSuber, g BillingPortalGetter) Middleware
Click to show internal directories.
Click to hide internal directories.