method

App.SchedulePublish

func (application *App) SchedulePublish( ctx context.Context, collection, documentID string, runAt time.Time, expectedRevision int, identity *AuthIdentity, ) (store.ScheduledPublish, error)

Queue a revision-fenced future publish.

Source core/publishing.go:20

@param ctx
The ctx value.
@param collection
The collection value.
@param documentID
The documentID value.
@param runAt
The runAt value.
@param expectedRevision
The expectedRevision value.
@param identity
The identity value.
@returns
The declared result.

Related types

  • App

    A resolved application bound to operation services.

  • AuthIdentity

    An exact authenticated collection and actor document.

  • ScheduledPublish

    Adapter-neutral revision-fenced future publish record.