type
EndpointContext
Raw HTTP, route parameters, actor identity, and LocalAPI supplied to a custom endpoint.
Properties
| Property | Type | Description |
|---|---|---|
Writer | http.ResponseWriter | Receives the endpoint response. |
Request | *http.Request | Carries request body, headers, cancellation, and PathValue parameters. |
RequestID | string | Matches the X-Request-ID response header. |
ClientIP | string | Framework-resolved direct or trusted-forwarded client address. |
RouteParams | map[string]string | Decoded named path parameters. |
Collection | schema.CollectionSlug | Owning collection when collection-scoped. |
Global | schema.CollectionSlug | Owning global when global-scoped. |
Actor | *store.Document | Authenticated actor or nil for an anonymous request. |
ActorCollection | schema.CollectionSlug | Auth collection owning Actor. |
Local | *LocalAPI | Enters the access-controlled operation engine. |
AdmitAuthAttempt | func(context.Context, | Applies distributed auth-attempt admission. |
ReportError | func(error, | Records a stable observation code and trusted diagnostic detail. |