type
LocaleAvailabilityContext
Request input for dynamic admin locale visibility.
Properties
| Property | Type | Description |
|---|---|---|
Context | context.Context | Carries request cancellation and deadlines. |
Actor | *store.Document | The authenticated author, or nil. |
ActorCollection | schema.CollectionSlug | Identifies the exact auth collection owning Actor. |
Local | *LocalAPI | Enters ordinary access-controlled content operations. |
How it works
Use Actor and ActorCollection to make request-scoped presentation choices. Local enters the same access-controlled operation engine as other local API calls; the callback does not receive a privileged database handle.
Full signature
type LocaleAvailabilityContext struct {
Context context.Context
Actor *store.Document
ActorCollection schema.CollectionSlug
Local *LocalAPI
}