Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(cfg ServerConfig, mw Middlewares) http.Handler
Types ¶
type Handlers ¶ added in v0.1.24
type Handlers struct {
UI *ui.UIHandler
API *api.APIHandler
InternalAPI *internalapi.Handler
}
type Middlewares ¶
type Middlewares struct {
RedirectIfAuthenticated func(http.Handler) http.Handler
RequireAppAccessAuthWithRefresh func(http.Handler) http.Handler
RequireAppAccessAuthAPI func(http.Handler) http.Handler
RequireAdminAccessAuthWithRefresh func(http.Handler) http.Handler
RequireAdminAccessAuthAPI func(http.Handler) http.Handler
RequireInternalAPIAuth func(http.Handler) http.Handler
RequirePublicOrganizationManagement func(http.Handler) http.Handler
RequireAdminRole func(http.Handler) http.Handler
RequireCSRF func(http.Handler) http.Handler
RequireAPICSRF func(http.Handler) http.Handler
ReturnTo func(http.Handler) http.Handler
HTMX func(http.Handler) http.Handler
RequireChallengeEnabled func(http.Handler) http.Handler
RequireAllowlistEnabled func(http.Handler) http.Handler
OptionalAppAccessIdentity func(http.Handler) http.Handler
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(cfg ServerConfig, mw Middlewares) *Server
Click to show internal directories.
Click to hide internal directories.