Documentation
¶
Index ¶
- Constants
- 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
- type Publish
- type PublishEvent
- type PublishEventInterface
- type Status
Constants ¶
View Source
const ( PUBLISHED = false DIRTY = true )
Variables ¶
This section is empty.
Functions ¶
func DraftTableName ¶
func IsDraftMode ¶
func IsPublishEvent ¶
func IsPublishEvent(model interface{}) (ok bool)
func IsPublishableModel ¶
func IsPublishableModel(model interface{}) (ok bool)
func OriginalTableName ¶
func RegisterEvent ¶
func RegisterEvent(name string, event EventInterface)
Types ¶
type EventInterface ¶
type EventInterface interface { Publish(db *gorm.DB, event PublishEventInterface) error Discard(db *gorm.DB, event PublishEventInterface) error }
type Publish ¶
func (*Publish) AutoMigrate ¶
func (db *Publish) AutoMigrate(values ...interface{})
func (*Publish) ConfigureQorResource ¶
func (Publish) ProductionDB ¶
type PublishEvent ¶
type PublishEvent struct { gorm.Model Name string Description string Argument string `sql:"size:65532"` PublishStatus bool PublishedBy string }
func (PublishEvent) VisiblePublishResource ¶
func (PublishEvent) VisiblePublishResource() bool
type PublishEventInterface ¶
type Status ¶
type Status struct {
PublishStatus bool
}
func (Status) ConfigureQorResource ¶
func (Status) GetPublishStatus ¶
func (*Status) SetPublishStatus ¶
Click to show internal directories.
Click to hide internal directories.