method

LocalAPI.RestoreGlobal

RestoreGlobal restores a retained global revision.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
slugstringThe slug value.
revisionintThe revision value.
optionsMutationOptionsThe options value.

Returns

The declared result.

(store.Document, error)

Full signature

func (local *LocalAPI) RestoreGlobal( ctx context.Context, slug string, revision int, options MutationOptions, ) (store.Document, error)

Source core/local.go:778

Related types

  • LocalAPI

    In-process content operations that share the REST authorization and lifecycle pipeline.

  • MutationOptions

    Authorization, optimistic concurrency, response population, create status, and locale controls for one write.

  • Document

    A stored document with status and version metadata.