http

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(mux webx.Router, d Deps)

func MountAdmin added in v0.17.0

func MountAdmin(mux webx.Router, d AdminDeps)

Types

type AdminDeps added in v0.17.0

type AdminDeps struct {
	Svc *app.BillingService

	Guard func(http.Handler) http.Handler
}

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL