Versions in this module Expand all Collapse all v1 v1.0.1 Sep 3, 2023 Changes in this version + const DIRTY + const PUBLISHED + const PublishPermission + func DraftTableName(table string) string + func IsDraftMode(db *gorm.DB) bool + func IsPublishEvent(model interface{}) (ok bool) + func IsPublishableModel(model interface{}) (ok bool) + func OriginalTableName(table string) string + func RegisterEvent(name string, event EventInterface) + type EventInterface interface + Discard func(db *gorm.DB, event PublishEventInterface) error + Publish func(db *gorm.DB, event PublishEventInterface) error + type LoggerInterface interface + Print func(...interface{}) + var Logger LoggerInterface + type Publish struct + DB *gorm.DB + SearchHandler func(db *gorm.DB, context *qor.Context) *gorm.DB + WorkerScheduler *worker.Worker + func New(db *gorm.DB) *Publish + func (pb *Publish) AutoMigrate(values ...interface{}) + func (pb Publish) Discard(records ...interface{}) + func (pb Publish) DraftDB() *gorm.DB + func (pb Publish) Logger(l LoggerInterface) *Publish + func (pb Publish) ProductionDB() *gorm.DB + func (pb Publish) Publish(records ...interface{}) + func (publish *Publish) ConfigureQorResource(res resource.Resourcer) + func (publish *Publish) ConfigureQorResourceBeforeInitialize(res resource.Resourcer) + func (publish *Publish) SetWorker(w *worker.Worker) + type PublishEvent struct + Argument string + Description string + Name string + PublishStatus bool + PublishedBy string + func (PublishEvent) VisiblePublishResource(*qor.Context) bool + func (publishEvent *PublishEvent) Discard(db *gorm.DB) error + func (publishEvent *PublishEvent) Publish(db *gorm.DB) error + type PublishEventInterface interface + Discard func(*gorm.DB) error + Publish func(*gorm.DB) error + type QorWorkerArgument struct + IDs []string + type Status struct + PublishStatus bool + func (s *Status) SetPublishStatus(status bool) + func (s Status) ConfigureQorResource(res resource.Resourcer) + func (s Status) GetPublishStatus() bool