Documentation ¶
Index ¶
- Constants
- Variables
- func IsPublishReadyableModel(model interface{}) (ok bool)
- func IsSchedulableModel(model interface{}) (ok bool)
- func IsShareableVersionModel(model interface{}) (ok bool)
- func IsVersionableModel(model interface{}) (ok bool)
- func PreviewByDB(tx *gorm.DB, context *qor.Context) *gorm.DB
- func RegisterCallbacks(db *gorm.DB)
- type Publish
- type PublishReadyInterface
- type Schedule
- func (Schedule) ConfigureQorResource(res resource.Resourcer)
- func (schedule *Schedule) GetScheduledEndAt() *time.Time
- func (schedule *Schedule) GetScheduledEventID() *uint
- func (schedule *Schedule) GetScheduledStartAt() *time.Time
- func (schedule *Schedule) SetScheduledEndAt(t *time.Time)
- func (schedule *Schedule) SetScheduledStartAt(t *time.Time)
- type ScheduledEvent
- type ScheduledInterface
- type ShareableVersionInterface
- type SharedVersion
- type Version
- type VersionableInterface
- type Visible
Constants ¶
View Source
const ( ModeOff = "off" ModeReverse = "reverse" VersionMode = "publish:version:mode" VersionNameMode = "publish:version:name" VersionMultipleMode = "multiple" ScheduleMode = "publish:schedule:mode" ComingOnlineMode = "coming_online" GoingOfflineMode = "going_offline" ScheduledTime = "publish:schedule:current" ScheduledStart = "publish:schedule:start" ScheduledEnd = "publish:schedule:end" VisibleMode = "publish:visible:mode" )
Variables ¶
View Source
var DefaultVersionName = "Default"
Functions ¶
func IsPublishReadyableModel ¶
func IsPublishReadyableModel(model interface{}) (ok bool)
func IsSchedulableModel ¶
func IsSchedulableModel(model interface{}) (ok bool)
func IsShareableVersionModel ¶
func IsShareableVersionModel(model interface{}) (ok bool)
func IsVersionableModel ¶
func IsVersionableModel(model interface{}) (ok bool)
func RegisterCallbacks ¶
Types ¶
type PublishReadyInterface ¶
type Schedule ¶
type Schedule struct { ScheduledStartAt *time.Time `gorm:"index"` ScheduledEndAt *time.Time `gorm:"index"` ScheduledEventID *uint }
func (Schedule) ConfigureQorResource ¶
func (*Schedule) GetScheduledEndAt ¶
func (*Schedule) GetScheduledEventID ¶
func (*Schedule) GetScheduledStartAt ¶
func (*Schedule) SetScheduledEndAt ¶
func (*Schedule) SetScheduledStartAt ¶
type ScheduledEvent ¶
type ScheduledEvent struct { gorm.Model Name string ScheduledStartAt *time.Time ScheduledEndAt *time.Time }
func (ScheduledEvent) BeforeSave ¶
func (scheduledEvent ScheduledEvent) BeforeSave(tx *gorm.DB)
func (ScheduledEvent) ToParam ¶
func (scheduledEvent ScheduledEvent) ToParam() string
type ScheduledInterface ¶
type ShareableVersionInterface ¶
type ShareableVersionInterface interface {}
type SharedVersion ¶
type SharedVersion struct {
}func (SharedVersion) ConfigureQorResource ¶
func (SharedVersion) ConfigureQorResource(res resource.Resourcer)
func (SharedVersion) GetSharedVersionName ¶
func (version SharedVersion) GetSharedVersionName() string
func (*SharedVersion) SetSharedVersionName ¶
func (version *SharedVersion) SetSharedVersionName(name string)
type Version ¶
type Version struct { VersionName string `gorm:"primary_key;size:128"` VersionPriority string `gorm:"index"` }
func (Version) ConfigureQorResource ¶
func (Version) GetVersionName ¶
func (*Version) SetVersionName ¶
type VersionableInterface ¶
type Visible ¶
type Visible struct {
PublishReady bool
}
func (Visible) ConfigureQorResource ¶
func (Visible) GetPublishReady ¶
func (*Visible) SetPublishReady ¶
Click to show internal directories.
Click to hide internal directories.