method

LocalAPI.Global

Global reads a singleton with transport-owned projection and population through the ordinary operation engine.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
slugstringThe slug value.
optionsFindOptionsThe options value.

Returns

The declared result.

(store.Document, error)

Full signature

func (local *LocalAPI) Global( ctx context.Context, slug string, options FindOptions, ) (store.Document, error)

Source core/local.go:702

Related types

  • LocalAPI

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

  • FindOptions

    Projection, population, authorization, draft, trash, and locale controls for one read.

  • Document

    A stored document with status and version metadata.