type
BoundTypedGlobal
Typed singleton methods for reads, working drafts, publication, restoration, and discard.
Properties
| Property | Type | Description |
|---|---|---|
Find(ctx, options) | (Document, | Read one locale with optional population, projection and exact actor identity. |
Update(ctx, input, options) | (Document, | Initialize or update working singleton values from the strict Update model. Published versioned content fails with publish_required unless the update has draft intent; use PublishChanges to edit and publish it. |
SaveDraft(ctx, input, options) | (Document, | Stage incomplete working values from the generated Draft model without changing live content. |
DiscardDraft(ctx, options) | (Document, | Reset pending working values to the live singleton under an expected-revision fence. |
Publish(ctx, options) | (Document, | Validate the complete working singleton and promote it to live content. |
PublishChanges(ctx, input, options) | (Document, | Apply a strict partial update from the Update model and publish the result in one operation. |
Unpublish(ctx, options) | (Document, | Remove the live snapshot while retaining working content as draft. |
Restore(ctx, revision, options) | (Document, | Restore a retained snapshot with its historical publication state: published snapshots become live; draft snapshots remain unpublished. |
RestoreAsDraft(ctx, revision, options) | (Document, | Stage a retained snapshot in working content without unpublishing the existing live snapshot. |
How it works
Generated wrappers keep singleton methods discoverable without changing LocalAPI semantics or authorization. TypedMutationOptions.ExpectedRevision fences concurrent writes; publication validates the full working candidate.
Full signature
type BoundTypedGlobal[Document, Update, Draft any] struct {
// contains filtered or unexported fields
}Methods
BoundTypedGlobal.DiscardDraft()DiscardDraft resets pending working values to the published singleton.
BoundTypedGlobal.Find()Read one locale through the operation engine with optional population and projection.
BoundTypedGlobal.Publish()Public method BoundTypedGlobal.Publish from github.com/riducms/ridu/core.
BoundTypedGlobal.PublishChanges()PublishChanges applies input and publishes the result in one operation. A published versioned global changes this way; Update refuses it with publish_required.
BoundTypedGlobal.Restore()Public method BoundTypedGlobal.Restore from github.com/riducms/ridu/core.
BoundTypedGlobal.RestoreAsDraft()Public method BoundTypedGlobal.RestoreAsDraft from github.com/riducms/ridu/core.
BoundTypedGlobal.SaveDraft()SaveDraft stages incomplete working values without changing the live global.
BoundTypedGlobal.Unpublish()Public method BoundTypedGlobal.Unpublish from github.com/riducms/ridu/core.
BoundTypedGlobal.Update()Public method BoundTypedGlobal.Update from github.com/riducms/ridu/core.