Documentation
¶
Index ¶
- func Mount(mux webx.Router, d Deps)
- func MountBillingOps(mux webx.Router, d BillingOpsDeps)
- func MountUserOps(mux webx.Router, d UserOpsDeps)
- func MountWsOps(mux webx.Router, d WsOpsDeps)
- func PlatformAdminGuard() func(http.Handler) http.Handler
- type AuditRecorder
- type BillingOpsDeps
- type Deps
- type SessionMinter
- type UserOpsDeps
- type WsOpsDeps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountBillingOps ¶
func MountBillingOps(mux webx.Router, d BillingOpsDeps)
func MountUserOps ¶
func MountUserOps(mux webx.Router, d UserOpsDeps)
func MountWsOps ¶
func PlatformAdminGuard ¶ added in v0.8.0
PlatformAdminGuard returns the platform-admin middleware: it requires an authenticated principal that is a platform admin, in a non-impersonated browser session (PATs are rejected). This is the exported form of the guard every admin route runs behind (see Deps.requireAdmin); products mounting their own admin-facing endpoints (e.g. settingshttp.AdminDeps.Guard) should pass this instead of a hand-written closure, which historically missed the impersonation and PAT defenses.
Types ¶
type AuditRecorder ¶
type BillingOpsDeps ¶
type BillingOpsDeps struct {
Svc *app.BillingOpsService
}
type Deps ¶
type Deps struct {
Svc *app.AdminService
Rec AuditRecorder
Sessions SessionMinter
AuthCfg *webx.AuthConfig
Hooks *admin.Hooks
}
type SessionMinter ¶
type UserOpsDeps ¶
type UserOpsDeps struct {
Deps
Ops *app.UserOpsService
}
type WsOpsDeps ¶
type WsOpsDeps struct {
Svc *app.WsOpsService
}
Click to show internal directories.
Click to hide internal directories.