Documentation ¶
Index ¶
- type CrontabWorkerEntity
- func Create(ctx context.Context, id int64, name, ip, os, arch string, jobList []string, ...) (*CrontabWorkerEntity, error)
- func DetailById(ctx context.Context, id int64) (*CrontabWorkerEntity, error)
- func DetailByIds(ctx context.Context, ids []int64) ([]*CrontabWorkerEntity, error)
- func DetailByKeys(ctx context.Context, name, ip, os string) (*CrontabWorkerEntity, error)
- func List(ctx context.Context, id int64, name, ip, os, arch string, ...) ([]*CrontabWorkerEntity, int64, error)
- func Update(ctx context.Context, id int64, name, ip, os, arch string, jobList []string, ...) (*CrontabWorkerEntity, error)
- func UpdateStatus(ctx context.Context, id int64, status int32) (*CrontabWorkerEntity, error)
- func Upset(ctx context.Context, id int64, name, ip, os, arch string, jobList []string, ...) (*CrontabWorkerEntity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrontabWorkerEntity ¶
type CrontabWorkerEntity struct { Id int64 `gorm:"not null; column:id" json:"id"` Name string `gorm:"not null; column:name" json:"name"` OS string `gorm:"not null; column:os" json:"os"` ARCH string `gorm:"not null; column:arch" json:"arch"` Ip string `gorm:"not null; column:ip" json:"ip"` JobList pq.StringArray `gorm:"type:varchar[]; not null; column:job_list" json:"job_list"` StatusOnline int32 `gorm:"not null; column:status_online" json:"status_online"` Status int32 `gorm:"not null; column:status" json:"status"` CreateTime int64 `gorm:"not null; column:create_time" json:"create_time"` UpdateTime int64 `gorm:"not null; column:update_time" json:"update_time"` }
func DetailById ¶
func DetailById(ctx context.Context, id int64) (*CrontabWorkerEntity, error)
func DetailByIds ¶
func DetailByIds(ctx context.Context, ids []int64) ([]*CrontabWorkerEntity, error)
func DetailByKeys ¶
func DetailByKeys(ctx context.Context, name, ip, os string) (*CrontabWorkerEntity, error)
func UpdateStatus ¶
func (CrontabWorkerEntity) TableName ¶
func (CrontabWorkerEntity) TableName() string
Click to show internal directories.
Click to hide internal directories.