type

EndpointContext

Raw HTTP, route parameters, actor identity, and LocalAPI supplied to a custom endpoint.

Properties

PropertyTypeDescription
Writerhttp.ResponseWriterReceives the endpoint response.
Request*http.RequestCarries request body, headers, cancellation, and PathValue parameters.
RequestIDstringMatches the X-Request-ID response header.
ClientIPstringFramework-resolved direct or trusted-forwarded client address.
RouteParamsmap[string]stringDecoded named path parameters.
Collectionschema.CollectionSlugOwning collection when collection-scoped.
Globalschema.CollectionSlugOwning global when global-scoped.
Actor*store.DocumentAuthenticated actor or nil for an anonymous request.
ActorCollectionschema.CollectionSlugAuth collection owning Actor.
Local*LocalAPIEnters the access-controlled operation engine.
AdmitAuthAttemptfunc(context.Context, string, string) errorApplies distributed auth-attempt admission.
ReportErrorfunc(error, string)Records a stable observation code and trusted diagnostic detail.

Full signature