Documentation ¶
Overview ¶
Package po is the package of persistent object
Package po is the package of persistent object
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronTriggerTemplate ¶
type CronTriggerTemplate struct { gorm.Model // CronExpr is the cron expression. CronExpr string `gorm:"column:cron_expr;type:varchar(255);not null;default:'unknown';comment:'cron expr'" copier:"must,nopanic"` // Topic the message topic Topic string `gorm:"column:topic;type:varchar(255);not null;default:'unknown';comment:'message topic'" copier:"must,nopanic"` // Payload the message payload Payload []byte `gorm:"column:payload;type:TEXT;not null;comment:'message content'" copier:"must,nopanic"` // LastExecutionTime last time to schedule the message LastExecutionTime time.Time `gorm:"column:last_execution_time;type:TIMESTAMP;not null;comment:'last time to schedule the message'" copier:"must,nopanic"` // LoopedTimes already loop times LoopedTimes uint64 `gorm:"column:looped_times;type:int unsigned;not null;default:0;comment:'already loop times'" copier:"must,nopanic"` // ExceptedEndTime excepted trigger end time, if it is 0, it means that it will not end. ExceptedEndTime time.Time `` /* 157-byte string literal not displayed */ // ExceptedLoopTimes except loop times ExceptedLoopTimes uint64 `gorm:"column:excepted_loop_times;type:int unsigned;not null;default:0;comment:'except loop times'" copier:"must,nopanic"` // Status the trigger template status: enable->1 disable->2 offline->3 and so on Status pb.TriggerStatus `` /* 156-byte string literal not displayed */ }
CronTriggerTemplate is the po of CronTriggerTemplate it define the table name and columns
func (CronTriggerTemplate) TableName ¶
func (CronTriggerTemplate) TableName() string
TableName returns the table name of CronTriggerTemplate impl gorm Tabler interface
type WebhookTriggerTemplate ¶
type WebhookTriggerTemplate struct { gorm.Model // Topic the message topic Topic string `gorm:"column:topic;type:varchar(255);not null;default:'unknown';comment:'message topic'" copier:"must,nopanic"` // Payload the message payload Payload []byte `gorm:"column:payload;type:TEXT;not null;comment:'message content'" copier:"must,nopanic"` // Message DeliverAfter time (Seconds) DeliverAfter int64 `gorm:"column:deliver_after;type:int;not null;comment:'message deliver after seconds'" copier:"must,nopanic"` // LoopedTimes already loop times LoopedTimes uint64 `gorm:"column:looped_times;type:int unsigned;not null;default:0;comment:'already loop times'" copier:"must,nopanic"` // ExceptedEndTime excepted trigger end time, if it is 0, it means that it will not end. ExceptedEndTime time.Time `` /* 157-byte string literal not displayed */ // ExceptedLoopTimes except loop times ExceptedLoopTimes uint64 `gorm:"column:excepted_loop_times;type:int unsigned;not null;default:0;comment:'except loop times'" copier:"must,nopanic"` // Status the trigger template status: enable->1 disable->2 offline->3 and so on Status pb.TriggerStatus `` /* 156-byte string literal not displayed */ }
WebhookTriggerTemplate is the po of WebhookTriggerTemplate it define the table name and columns
func (WebhookTriggerTemplate) TableName ¶
func (WebhookTriggerTemplate) TableName() string
TableName returns the table name of WebhookTriggerTemplate impl gorm Tabler interface
Click to show internal directories.
Click to hide internal directories.