Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAsyncTaskRepo ¶
func NewAsyncTaskRepo(cfg *Config) repository.AsyncTask
Types ¶
type JSONMap ¶
type JSONMap map[string]interface{}
JSONMap
type TAsyncTask ¶
type TAsyncTask struct { Id uint64 `gorm:"primaryKey;column:id"` User string `gorm:"column:username"` TaskType string `gorm:"column:task_type"` Status string `gorm:"column:status"` CreatedAt int64 `gorm:"column:created_at;default:extract(epoch from now())"` MetaData JSONMap `gorm:"column:metadata;type:json;default: '{}'::json"` }
func NewTAsyncTask ¶
func NewTAsyncTask() *TAsyncTask
func (TAsyncTask) TableName ¶
func (w TAsyncTask) TableName() string
Click to show internal directories.
Click to hide internal directories.