Documentation
¶
Index ¶
- type Auth
- func (auth *Auth) AuthMiddleware() func(http.Handler) http.Handler
- func (auth *Auth) CSRFMiddleware() func(http.Handler) http.Handler
- func (auth *Auth) ClosePlugins() error
- func (auth *Auth) CorsAuthMiddleware() func(http.Handler) http.Handler
- func (auth *Auth) DropMigrations()
- func (auth *Auth) EndpointHooksMiddleware() func(http.Handler) http.Handler
- func (auth *Auth) GetUserIDFromContext(ctx context.Context) (string, bool)
- func (auth *Auth) GetUserIDFromRequest(req *http.Request) (string, bool)
- func (auth *Auth) Handler() http.Handler
- func (auth *Auth) OptionalAuthMiddleware() func(http.Handler) http.Handler
- func (auth *Auth) RateLimitMiddleware() func(http.Handler) http.Handler
- func (auth *Auth) RegisterRoute(route models.CustomRoute)
- func (auth *Auth) RunMigrations()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
Config *models.Config
Api *models.Api
EventBus models.EventBus
// contains filtered or unexported fields
}
func (*Auth) CSRFMiddleware ¶ added in v1.0.4
func (*Auth) ClosePlugins ¶ added in v1.3.0
ClosePlugins calls Close for all registered plugins
func (*Auth) CorsAuthMiddleware ¶ added in v1.0.0
func (*Auth) DropMigrations ¶ added in v1.0.0
func (auth *Auth) DropMigrations()
func (*Auth) EndpointHooksMiddleware ¶ added in v1.0.6
func (*Auth) GetUserIDFromContext ¶ added in v1.1.1
func (*Auth) GetUserIDFromRequest ¶ added in v1.1.1
func (*Auth) OptionalAuthMiddleware ¶
func (*Auth) RateLimitMiddleware ¶ added in v1.0.4
func (*Auth) RegisterRoute ¶ added in v1.0.10
func (auth *Auth) RegisterRoute(route models.CustomRoute)
func (*Auth) RunMigrations ¶
func (auth *Auth) RunMigrations()
Click to show internal directories.
Click to hide internal directories.