type

PublicationScheduleOptions

PublicationScheduleOptions controls revision fencing and the saved display timezone. TimeZone is optional; it never changes the instant supplied in runAt.

Properties

PropertyTypeDescription
ExpectedRevisionintExpectedRevision rejects the task when the document changes before it runs. Zero captures the current revision when the task is created.
TimeZonestringTimeZone optionally retains the intended display zone without changing runAt.

Full signature

type PublicationScheduleOptions struct { // ExpectedRevision rejects the task when the document changes before it runs. // Zero captures the current revision when the task is created. ExpectedRevision int // TimeZone optionally retains the intended display zone without changing runAt. TimeZone string }

Source core/publishing.go:21