Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountAdmin ¶ added in v0.17.0
Types ¶
type AdminDeps ¶ added in v0.17.0
AdminDeps mounts the operator-facing billing endpoints. Guard is the platform-admin middleware — pass adminhttp.PlatformAdminGuard() (products mount their own admin-facing endpoints through it instead of hand-written closures; billing cannot import admin, so the guard is injected). A nil Guard panics: an unguarded admin route is a security hole, not a degraded feature (same discipline as settingshttp.AdminDeps).
type Deps ¶
type Deps struct {
Svc *app.BillingService
WsMW func(http.Handler) http.Handler
Authz *authz.Authorizer
Usage workers.UsageReader
}
Click to show internal directories.
Click to hide internal directories.