代码拉取完成,页面将自动刷新
package outbox
import "time"
const (
// PublishedTableName ...
PublishedTableName = "outbox_published"
// ReceivedTableName ...
ReceivedTableName = "outbox_received"
)
// Published ...
type Published struct {
ID int64 `json:"id" gorm:"column:id;primaryKey;type:BIGINT(20)"`
Version string `json:"version" gorm:"column:version;type:VARCHAR(20)"`
Topic string `json:"topic" gorm:"column:topic;type:VARCHAR(200);not null"`
Value string `json:"value" gorm:"column:value;type:LONGTEXT"`
Retries int `json:"retries" gorm:"column:retries;type:INT(11)"`
CreatedAt time.Time `json:"created_at" gorm:"column:created_at;type:DATETIME;not null"`
ExpiresAt *time.Time `json:"expires_at" gorm:"column:expires_at;type:DATETIME"`
StatusName string `json:"status_name" gorm:"index;column:status_name;type:VARCHAR(40);not null"`
}
// TableName ...
func (Published) TableName() string {
return PublishedTableName
}
// Received ...
type Received struct {
ID int64 `json:"id" gorm:"column:id;primaryKey;type:BIGINT(20)"`
Version string `json:"version" gorm:"column:version;type:VARCHAR(20)"`
Topic string `json:"name" gorm:"column:name;type:VARCHAR(200);not null"`
Group string `json:"group" gorm:"column:group;type:VARCHAR(200);not null"`
Value string `json:"value" gorm:"column:value;type:LONGTEXT"`
Retries int `json:"retries" gorm:"column:retries;type:INT(11)"`
CreatedAt time.Time `json:"created_at" gorm:"column:created_at;type:DATETIME;not null"`
ExpiresAt *time.Time `json:"expires_at" gorm:"column:expires_at;type:DATETIME"`
StatusName string `json:"status_name" gorm:"index;column:status_name;type:VARCHAR(40);not null"`
}
// TableName ...
func (Received) TableName() string {
return ReceivedTableName
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。