type
EndpointContext
Raw HTTP, route parameters, actor identity, and LocalAPI supplied to a custom endpoint.
Writerhttp.ResponseWriter- Receives the endpoint response.
Request*http.Request- Carries request body, headers, cancellation, and PathValue parameters.
RequestIDstring- Matches the X-Request-ID response header.
ClientIPstring- Framework-resolved direct or trusted-forwarded client address.
RouteParamsmap[string]string- Decoded named path parameters.
Collectionschema.CollectionSlug- Owning collection when collection-scoped.
Globalschema.CollectionSlug- Owning global when global-scoped.
Actor*store.Document- Authenticated actor or nil for an anonymous request.
ActorCollectionschema.CollectionSlug- Auth collection owning Actor.
Local*LocalAPI- Enters the access-controlled operation engine.
AdmitAuthAttemptfunc(context.Context, string, string) error- Applies distributed auth-attempt admission.
ReportErrorfunc(error, string)- Records a stable observation code and trusted diagnostic detail.