Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubrouteInfos ¶ added in v0.4.0
SubrouteInfos returns the absolute routes the sub-mux serves once Mount mounts it under "/api/workspaces/{workspaceId}/": subroutePrefix applied to each recorded sub-mux pattern. The root router records only the subtree mount (no method prefix — not an endpoint), so runtime route enumeration — e.g. a contract test comparing mounted routes against the OpenAPI spec — must consult this list in addition to the root Mux.Routes(). It shares the registration with the serving path (workspaceSubroutes), so the two cannot drift; the zero-value Deps only produce handler closures that are never invoked here.
func WorkspaceHeaderCtx ¶
func WorkspaceHeaderCtx(members MemberChecker) func(http.Handler) http.Handler
Types ¶
type Deps ¶
type Deps struct {
Svc *app.WorkspaceService
Members MemberChecker
Authz *authz.Authorizer
// StepUp, when non-nil, wraps the domain's destructive operations (delete
// workspace, transfer ownership). Products mount
// webx.RequireRecentAuth(maxAge) here — requiring a fresh password
// confirmation for destructive actions is a product policy, the domain
// only marks which operations are destructive. Nil = no step-up.
StepUp func(http.Handler) http.Handler
}
Click to show internal directories.
Click to hide internal directories.