model

package
v0.0.0-...-58e3b27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 9 Imported by: 3

Documentation

Overview

Code generated by go-queryset. DO NOT EDIT.

Code generated by go-queryset. DO NOT EDIT.

Code generated by go-queryset. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var ExportDBDBSchema = struct {
	ID        ExportDBDBSchemaField
	ShowName  ExportDBDBSchemaField
	Host      ExportDBDBSchemaField
	Port      ExportDBDBSchemaField
	User      ExportDBDBSchemaField
	Password  ExportDBDBSchemaField
	DBName    ExportDBDBSchemaField
	CreatedAt ExportDBDBSchemaField
	UpdatedAt ExportDBDBSchemaField
}{

	ID:        ExportDBDBSchemaField("id"),
	ShowName:  ExportDBDBSchemaField("show_name"),
	Host:      ExportDBDBSchemaField("host"),
	Port:      ExportDBDBSchemaField("port"),
	User:      ExportDBDBSchemaField("user"),
	Password:  ExportDBDBSchemaField("password"),
	DBName:    ExportDBDBSchemaField("db_name"),
	CreatedAt: ExportDBDBSchemaField("created_at"),
	UpdatedAt: ExportDBDBSchemaField("updated_at"),
}

ExportDBDBSchema stores db field names of ExportDB

View Source
var TaskDBSchema = struct {
	ID                TaskDBSchemaField
	TaskName          TaskDBSchemaField
	TaskRuleName      TaskDBSchemaField
	TaskDesc          TaskDBSchemaField
	Status            TaskDBSchemaField
	Counts            TaskDBSchemaField
	CronSpec          TaskDBSchemaField
	OutputType        TaskDBSchemaField
	OutputExportDBID  TaskDBSchemaField
	OptUserAgent      TaskDBSchemaField
	OptMaxDepth       TaskDBSchemaField
	OptAllowedDomains TaskDBSchemaField
	OptURLFilters     TaskDBSchemaField
	OptMaxBodySize    TaskDBSchemaField
	OptRequestTimeout TaskDBSchemaField
	AutoMigrate       TaskDBSchemaField
	LimitEnable       TaskDBSchemaField
	LimitDomainRegexp TaskDBSchemaField
	LimitDomainGlob   TaskDBSchemaField
	LimitDelay        TaskDBSchemaField
	LimitRandomDelay  TaskDBSchemaField
	LimitParallelism  TaskDBSchemaField
	ProxyURLs         TaskDBSchemaField
	CreatedAt         TaskDBSchemaField
	UpdatedAt         TaskDBSchemaField
}{

	ID:                TaskDBSchemaField("id"),
	TaskName:          TaskDBSchemaField("task_name"),
	TaskRuleName:      TaskDBSchemaField("task_rule_name"),
	TaskDesc:          TaskDBSchemaField("task_desc"),
	Status:            TaskDBSchemaField("status"),
	Counts:            TaskDBSchemaField("counts"),
	CronSpec:          TaskDBSchemaField("cron_spec"),
	OutputType:        TaskDBSchemaField("output_type"),
	OutputExportDBID:  TaskDBSchemaField("output_exportdb_id"),
	OptUserAgent:      TaskDBSchemaField("opt_user_agent"),
	OptMaxDepth:       TaskDBSchemaField("opt_max_depth"),
	OptAllowedDomains: TaskDBSchemaField("opt_allowed_domains"),
	OptURLFilters:     TaskDBSchemaField("opt_url_filters"),
	OptMaxBodySize:    TaskDBSchemaField("opt_max_body_size"),
	OptRequestTimeout: TaskDBSchemaField("opt_request_timeout"),
	AutoMigrate:       TaskDBSchemaField("auto_migrate"),
	LimitEnable:       TaskDBSchemaField("limit_enable"),
	LimitDomainRegexp: TaskDBSchemaField("limit_domain_regexp"),
	LimitDomainGlob:   TaskDBSchemaField("limit_domain_glob"),
	LimitDelay:        TaskDBSchemaField("limit_delay"),
	LimitRandomDelay:  TaskDBSchemaField("limit_random_delay"),
	LimitParallelism:  TaskDBSchemaField("limit_parallelism"),
	ProxyURLs:         TaskDBSchemaField("proxy_urls"),
	CreatedAt:         TaskDBSchemaField("created_at"),
	UpdatedAt:         TaskDBSchemaField("updated_at"),
}

TaskDBSchema stores db field names of Task

View Source
var UserDBSchema = struct {
	ID           UserDBSchemaField
	UserName     UserDBSchemaField
	Password     UserDBSchemaField
	Email        UserDBSchemaField
	Roles        UserDBSchemaField
	Introduction UserDBSchemaField
	Avatar       UserDBSchemaField
	CreatedAt    UserDBSchemaField
	UpdatedAt    UserDBSchemaField
}{

	ID:           UserDBSchemaField("id"),
	UserName:     UserDBSchemaField("user_name"),
	Password:     UserDBSchemaField("password"),
	Email:        UserDBSchemaField("email"),
	Roles:        UserDBSchemaField("roles"),
	Introduction: UserDBSchemaField("introduction"),
	Avatar:       UserDBSchemaField("avatar"),
	CreatedAt:    UserDBSchemaField("created_at"),
	UpdatedAt:    UserDBSchemaField("updated_at"),
}

UserDBSchema stores db field names of User

Functions

func GenUserHashPassword

func GenUserHashPassword(password string) (string, error)

func InitAdminUserIfNeeded

func InitAdminUserIfNeeded(db *gorm.DB) error

Types

type ExportDB

type ExportDB struct {
	ID        uint64    `json:"id" gorm:"column:id;type:bigint unsigned AUTO_INCREMENT;primary_key"`
	ShowName  string    `json:"show_name" gorm:"column:show_name;type:varchar(64);not null;unique_index:uk_show_name"`
	Host      string    `json:"host" gorm:"column:host;type:varchar(128);not null"`
	Port      int       `json:"port" gorm:"column:port;type:int;not null"`
	User      string    `json:"user" gorm:"column:user;type:varchar(32);not null"`
	Password  string    `json:"password" gorm:"column:password;type:varchar(32);not null;default:''"`
	DBName    string    `json:"db_name" gorm:"column:db_name;type:varchar(64);not null"`
	CreatedAt time.Time `json:"created_at" gorm:"column:created_at;type:datetime;not null;default:CURRENT_TIMESTAMP;index:idx_created_at"`
	UpdatedAt time.Time `json:"updated_at" gorm:"column:updated_at;type:datetime;not null;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"`
}

gen:qs

func GetExportDBList

func GetExportDBList(db *gorm.DB, size, offset int) ([]ExportDB, int, error)

func (*ExportDB) Create

func (o *ExportDB) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*ExportDB) Delete

func (o *ExportDB) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*ExportDB) TableName

func (o *ExportDB) TableName() string

func (*ExportDB) Update

func (o *ExportDB) Update(db *gorm.DB, fields ...ExportDBDBSchemaField) error

Update updates ExportDB fields by primary key nolint: dupl

type ExportDBDBSchemaField

type ExportDBDBSchemaField string

ExportDBDBSchemaField describes database schema field. It requires for method 'Update'

func (ExportDBDBSchemaField) String

func (f ExportDBDBSchemaField) String() string

String method returns string representation of field. nolint: dupl

type ExportDBQuerySet

type ExportDBQuerySet struct {
	// contains filtered or unexported fields
}

ExportDBQuerySet is an queryset type for ExportDB

func NewExportDBQuerySet

func NewExportDBQuerySet(db *gorm.DB) ExportDBQuerySet

NewExportDBQuerySet constructs new ExportDBQuerySet

func (ExportDBQuerySet) All

func (qs ExportDBQuerySet) All(ret *[]ExportDB) error

All is an autogenerated method nolint: dupl

func (ExportDBQuerySet) Count

func (qs ExportDBQuerySet) Count() (int, error)

Count is an autogenerated method nolint: dupl

func (ExportDBQuerySet) CreatedAtEq

func (qs ExportDBQuerySet) CreatedAtEq(createdAt time.Time) ExportDBQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (ExportDBQuerySet) CreatedAtGt

func (qs ExportDBQuerySet) CreatedAtGt(createdAt time.Time) ExportDBQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (ExportDBQuerySet) CreatedAtGte

func (qs ExportDBQuerySet) CreatedAtGte(createdAt time.Time) ExportDBQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (ExportDBQuerySet) CreatedAtLt

func (qs ExportDBQuerySet) CreatedAtLt(createdAt time.Time) ExportDBQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (ExportDBQuerySet) CreatedAtLte

func (qs ExportDBQuerySet) CreatedAtLte(createdAt time.Time) ExportDBQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (ExportDBQuerySet) CreatedAtNe

func (qs ExportDBQuerySet) CreatedAtNe(createdAt time.Time) ExportDBQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (ExportDBQuerySet) DBNameEq

func (qs ExportDBQuerySet) DBNameEq(dBName string) ExportDBQuerySet

DBNameEq is an autogenerated method nolint: dupl

func (ExportDBQuerySet) DBNameIn

func (qs ExportDBQuerySet) DBNameIn(dBName ...string) ExportDBQuerySet

DBNameIn is an autogenerated method nolint: dupl

func (ExportDBQuerySet) DBNameNe

func (qs ExportDBQuerySet) DBNameNe(dBName string) ExportDBQuerySet

DBNameNe is an autogenerated method nolint: dupl

func (ExportDBQuerySet) DBNameNotIn

func (qs ExportDBQuerySet) DBNameNotIn(dBName ...string) ExportDBQuerySet

DBNameNotIn is an autogenerated method nolint: dupl

func (ExportDBQuerySet) Delete

func (qs ExportDBQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (ExportDBQuerySet) DeleteNum

func (qs ExportDBQuerySet) DeleteNum() (int64, error)

DeleteNum is an autogenerated method nolint: dupl

func (ExportDBQuerySet) DeleteNumUnscoped

func (qs ExportDBQuerySet) DeleteNumUnscoped() (int64, error)

DeleteNumUnscoped is an autogenerated method nolint: dupl

func (ExportDBQuerySet) GetUpdater

func (qs ExportDBQuerySet) GetUpdater() ExportDBUpdater

GetUpdater is an autogenerated method nolint: dupl

func (ExportDBQuerySet) HostEq

func (qs ExportDBQuerySet) HostEq(host string) ExportDBQuerySet

HostEq is an autogenerated method nolint: dupl

func (ExportDBQuerySet) HostIn

func (qs ExportDBQuerySet) HostIn(host ...string) ExportDBQuerySet

HostIn is an autogenerated method nolint: dupl

func (ExportDBQuerySet) HostNe

func (qs ExportDBQuerySet) HostNe(host string) ExportDBQuerySet

HostNe is an autogenerated method nolint: dupl

func (ExportDBQuerySet) HostNotIn

func (qs ExportDBQuerySet) HostNotIn(host ...string) ExportDBQuerySet

HostNotIn is an autogenerated method nolint: dupl

func (ExportDBQuerySet) IDEq

IDEq is an autogenerated method nolint: dupl

func (ExportDBQuerySet) IDGt

IDGt is an autogenerated method nolint: dupl

func (ExportDBQuerySet) IDGte

IDGte is an autogenerated method nolint: dupl

func (ExportDBQuerySet) IDIn

func (qs ExportDBQuerySet) IDIn(ID ...uint64) ExportDBQuerySet

IDIn is an autogenerated method nolint: dupl

func (ExportDBQuerySet) IDLt

IDLt is an autogenerated method nolint: dupl

func (ExportDBQuerySet) IDLte

IDLte is an autogenerated method nolint: dupl

func (ExportDBQuerySet) IDNe

IDNe is an autogenerated method nolint: dupl

func (ExportDBQuerySet) IDNotIn

func (qs ExportDBQuerySet) IDNotIn(ID ...uint64) ExportDBQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (ExportDBQuerySet) Limit

func (qs ExportDBQuerySet) Limit(limit int) ExportDBQuerySet

Limit is an autogenerated method nolint: dupl

func (ExportDBQuerySet) Offset

func (qs ExportDBQuerySet) Offset(offset int) ExportDBQuerySet

Offset is an autogenerated method nolint: dupl

func (ExportDBQuerySet) One

func (qs ExportDBQuerySet) One(ret *ExportDB) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (ExportDBQuerySet) OrderAscByCreatedAt

func (qs ExportDBQuerySet) OrderAscByCreatedAt() ExportDBQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (ExportDBQuerySet) OrderAscByID

func (qs ExportDBQuerySet) OrderAscByID() ExportDBQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (ExportDBQuerySet) OrderAscByPort

func (qs ExportDBQuerySet) OrderAscByPort() ExportDBQuerySet

OrderAscByPort is an autogenerated method nolint: dupl

func (ExportDBQuerySet) OrderAscByUpdatedAt

func (qs ExportDBQuerySet) OrderAscByUpdatedAt() ExportDBQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (ExportDBQuerySet) OrderDescByCreatedAt

func (qs ExportDBQuerySet) OrderDescByCreatedAt() ExportDBQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (ExportDBQuerySet) OrderDescByID

func (qs ExportDBQuerySet) OrderDescByID() ExportDBQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (ExportDBQuerySet) OrderDescByPort

func (qs ExportDBQuerySet) OrderDescByPort() ExportDBQuerySet

OrderDescByPort is an autogenerated method nolint: dupl

func (ExportDBQuerySet) OrderDescByUpdatedAt

func (qs ExportDBQuerySet) OrderDescByUpdatedAt() ExportDBQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (ExportDBQuerySet) PasswordEq

func (qs ExportDBQuerySet) PasswordEq(password string) ExportDBQuerySet

PasswordEq is an autogenerated method nolint: dupl

func (ExportDBQuerySet) PasswordIn

func (qs ExportDBQuerySet) PasswordIn(password ...string) ExportDBQuerySet

PasswordIn is an autogenerated method nolint: dupl

func (ExportDBQuerySet) PasswordNe

func (qs ExportDBQuerySet) PasswordNe(password string) ExportDBQuerySet

PasswordNe is an autogenerated method nolint: dupl

func (ExportDBQuerySet) PasswordNotIn

func (qs ExportDBQuerySet) PasswordNotIn(password ...string) ExportDBQuerySet

PasswordNotIn is an autogenerated method nolint: dupl

func (ExportDBQuerySet) PortEq

func (qs ExportDBQuerySet) PortEq(port int) ExportDBQuerySet

PortEq is an autogenerated method nolint: dupl

func (ExportDBQuerySet) PortGt

func (qs ExportDBQuerySet) PortGt(port int) ExportDBQuerySet

PortGt is an autogenerated method nolint: dupl

func (ExportDBQuerySet) PortGte

func (qs ExportDBQuerySet) PortGte(port int) ExportDBQuerySet

PortGte is an autogenerated method nolint: dupl

func (ExportDBQuerySet) PortIn

func (qs ExportDBQuerySet) PortIn(port ...int) ExportDBQuerySet

PortIn is an autogenerated method nolint: dupl

func (ExportDBQuerySet) PortLt

func (qs ExportDBQuerySet) PortLt(port int) ExportDBQuerySet

PortLt is an autogenerated method nolint: dupl

func (ExportDBQuerySet) PortLte

func (qs ExportDBQuerySet) PortLte(port int) ExportDBQuerySet

PortLte is an autogenerated method nolint: dupl

func (ExportDBQuerySet) PortNe

func (qs ExportDBQuerySet) PortNe(port int) ExportDBQuerySet

PortNe is an autogenerated method nolint: dupl

func (ExportDBQuerySet) PortNotIn

func (qs ExportDBQuerySet) PortNotIn(port ...int) ExportDBQuerySet

PortNotIn is an autogenerated method nolint: dupl

func (ExportDBQuerySet) ShowNameEq

func (qs ExportDBQuerySet) ShowNameEq(showName string) ExportDBQuerySet

ShowNameEq is an autogenerated method nolint: dupl

func (ExportDBQuerySet) ShowNameIn

func (qs ExportDBQuerySet) ShowNameIn(showName ...string) ExportDBQuerySet

ShowNameIn is an autogenerated method nolint: dupl

func (ExportDBQuerySet) ShowNameNe

func (qs ExportDBQuerySet) ShowNameNe(showName string) ExportDBQuerySet

ShowNameNe is an autogenerated method nolint: dupl

func (ExportDBQuerySet) ShowNameNotIn

func (qs ExportDBQuerySet) ShowNameNotIn(showName ...string) ExportDBQuerySet

ShowNameNotIn is an autogenerated method nolint: dupl

func (ExportDBQuerySet) UpdatedAtEq

func (qs ExportDBQuerySet) UpdatedAtEq(updatedAt time.Time) ExportDBQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (ExportDBQuerySet) UpdatedAtGt

func (qs ExportDBQuerySet) UpdatedAtGt(updatedAt time.Time) ExportDBQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (ExportDBQuerySet) UpdatedAtGte

func (qs ExportDBQuerySet) UpdatedAtGte(updatedAt time.Time) ExportDBQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (ExportDBQuerySet) UpdatedAtLt

func (qs ExportDBQuerySet) UpdatedAtLt(updatedAt time.Time) ExportDBQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (ExportDBQuerySet) UpdatedAtLte

func (qs ExportDBQuerySet) UpdatedAtLte(updatedAt time.Time) ExportDBQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (ExportDBQuerySet) UpdatedAtNe

func (qs ExportDBQuerySet) UpdatedAtNe(updatedAt time.Time) ExportDBQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

func (ExportDBQuerySet) UserEq

func (qs ExportDBQuerySet) UserEq(user string) ExportDBQuerySet

UserEq is an autogenerated method nolint: dupl

func (ExportDBQuerySet) UserIn

func (qs ExportDBQuerySet) UserIn(user ...string) ExportDBQuerySet

UserIn is an autogenerated method nolint: dupl

func (ExportDBQuerySet) UserNe

func (qs ExportDBQuerySet) UserNe(user string) ExportDBQuerySet

UserNe is an autogenerated method nolint: dupl

func (ExportDBQuerySet) UserNotIn

func (qs ExportDBQuerySet) UserNotIn(user ...string) ExportDBQuerySet

UserNotIn is an autogenerated method nolint: dupl

type ExportDBUpdater

type ExportDBUpdater struct {
	// contains filtered or unexported fields
}

ExportDBUpdater is an ExportDB updates manager

func NewExportDBUpdater

func NewExportDBUpdater(db *gorm.DB) ExportDBUpdater

NewExportDBUpdater creates new ExportDB updater nolint: dupl

func (ExportDBUpdater) SetCreatedAt

func (u ExportDBUpdater) SetCreatedAt(createdAt time.Time) ExportDBUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (ExportDBUpdater) SetDBName

func (u ExportDBUpdater) SetDBName(dBName string) ExportDBUpdater

SetDBName is an autogenerated method nolint: dupl

func (ExportDBUpdater) SetHost

func (u ExportDBUpdater) SetHost(host string) ExportDBUpdater

SetHost is an autogenerated method nolint: dupl

func (ExportDBUpdater) SetID

SetID is an autogenerated method nolint: dupl

func (ExportDBUpdater) SetPassword

func (u ExportDBUpdater) SetPassword(password string) ExportDBUpdater

SetPassword is an autogenerated method nolint: dupl

func (ExportDBUpdater) SetPort

func (u ExportDBUpdater) SetPort(port int) ExportDBUpdater

SetPort is an autogenerated method nolint: dupl

func (ExportDBUpdater) SetShowName

func (u ExportDBUpdater) SetShowName(showName string) ExportDBUpdater

SetShowName is an autogenerated method nolint: dupl

func (ExportDBUpdater) SetUpdatedAt

func (u ExportDBUpdater) SetUpdatedAt(updatedAt time.Time) ExportDBUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (ExportDBUpdater) SetUser

func (u ExportDBUpdater) SetUser(user string) ExportDBUpdater

SetUser is an autogenerated method nolint: dupl

func (ExportDBUpdater) Update

func (u ExportDBUpdater) Update() error

Update is an autogenerated method nolint: dupl

func (ExportDBUpdater) UpdateNum

func (u ExportDBUpdater) UpdateNum() (int64, error)

UpdateNum is an autogenerated method nolint: dupl

type Task

type Task struct {
	ID               uint64            `json:"id,string" gorm:"column:id;type:bigint unsigned AUTO_INCREMENT;primary_key"`
	TaskName         string            `json:"task_name" gorm:"column:task_name;type:varchar(64);not null;unique_index:uk_task_name"`
	TaskRuleName     string            `json:"task_rule_name" gorm:"column:task_rule_name;type:varchar(64);not null"`
	TaskDesc         string            `json:"task_desc" gorm:"column:task_desc;type:varchar(512);not null;default:''"`
	Status           common.TaskStatus `json:"status" gorm:"column:status;type:tinyint;not null;default:'0'"`
	Counts           int               `json:"counts" gorm:"column:counts;type:int;not null;default:'0'"`
	CronSpec         string            `json:"cron_spec" gorm:"column:cron_spec;type:varchar(64);not null;default:''"`
	OutputType       string            `json:"output_type" gorm:"column:output_type;type:varchar(64);not null;"`
	OutputExportDBID uint64            `json:"output_exportdb_id" gorm:"column:output_exportdb_id;type:bigint;not null;default:'0'"`
	// 参数配置部分
	OptUserAgent      string `json:"opt_user_agent" gorm:"column:opt_user_agent;type:varchar(128);not null;default:''"`
	OptMaxDepth       int    `json:"opt_max_depth" gorm:"column:opt_max_depth;type:int;not null;default:'0'"`
	OptAllowedDomains string `json:"opt_allowed_domains" gorm:"column:opt_allowed_domains;type:varchar(512);not null;default:''"`
	OptURLFilters     string `json:"opt_url_filters" gorm:"column:opt_url_filters;type:varchar(512);not null;default:''"`
	OptMaxBodySize    int    `json:"opt_max_body_size" gorm:"column:opt_max_body_size;type:int;not null;default:'0'"`
	OptRequestTimeout int    `json:"opt_request_timeout" gorm:"column:opt_request_timeout;type:int;not null;default:'10'"`
	// auto migrate
	AutoMigrate bool `json:"auto_migrate" gorm:"column:auto_migrate;type:tinyint;not null;default:'0'"`

	// 频率限制
	LimitEnable       bool      `json:"limit_enable" gorm:"column:limit_enable;type:tinyint;not null;default:'0'"`
	LimitDomainRegexp string    `json:"limit_domain_regexp" gorm:"column:limit_domain_regexp;type:varchar(128);not null;default:''"`
	LimitDomainGlob   string    `json:"limit_domain_glob" gorm:"column:limit_domain_glob;type:varchar(128);not null;default:''"`
	LimitDelay        int       `json:"limit_delay" gorm:"column:limit_delay;type:int;not null;default:'0'"`
	LimitRandomDelay  int       `json:"limit_random_delay" gorm:"column:limit_random_delay;type:int;not null;default:'0'"`
	LimitParallelism  int       `json:"limit_parallelism" gorm:"column:limit_parallelism;type:int;not null;default:'0'"`
	ProxyURLs         string    `json:"proxy_urls" gorm:"column:proxy_urls;type:varchar(2048);not null;default:''"`
	CreatedAt         time.Time `json:"created_at" gorm:"column:created_at;type:datetime;not null;default:CURRENT_TIMESTAMP;index:idx_created_at"`
	UpdatedAt         time.Time `` /* 140-byte string literal not displayed */
}

gen:qs

func GetTaskList

func GetTaskList(db *gorm.DB, size, offset int) ([]Task, int, error)

func (*Task) Create

func (o *Task) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*Task) Delete

func (o *Task) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*Task) TableName

func (o *Task) TableName() string

func (*Task) Update

func (o *Task) Update(db *gorm.DB, fields ...TaskDBSchemaField) error

Update updates Task fields by primary key nolint: dupl

type TaskDBSchemaField

type TaskDBSchemaField string

TaskDBSchemaField describes database schema field. It requires for method 'Update'

func (TaskDBSchemaField) String

func (f TaskDBSchemaField) String() string

String method returns string representation of field. nolint: dupl

type TaskQuerySet

type TaskQuerySet struct {
	// contains filtered or unexported fields
}

TaskQuerySet is an queryset type for Task

func NewTaskQuerySet

func NewTaskQuerySet(db *gorm.DB) TaskQuerySet

NewTaskQuerySet constructs new TaskQuerySet

func (TaskQuerySet) All

func (qs TaskQuerySet) All(ret *[]Task) error

All is an autogenerated method nolint: dupl

func (TaskQuerySet) AutoMigrateEq

func (qs TaskQuerySet) AutoMigrateEq(autoMigrate bool) TaskQuerySet

AutoMigrateEq is an autogenerated method nolint: dupl

func (TaskQuerySet) AutoMigrateIn

func (qs TaskQuerySet) AutoMigrateIn(autoMigrate ...bool) TaskQuerySet

AutoMigrateIn is an autogenerated method nolint: dupl

func (TaskQuerySet) AutoMigrateNe

func (qs TaskQuerySet) AutoMigrateNe(autoMigrate bool) TaskQuerySet

AutoMigrateNe is an autogenerated method nolint: dupl

func (TaskQuerySet) AutoMigrateNotIn

func (qs TaskQuerySet) AutoMigrateNotIn(autoMigrate ...bool) TaskQuerySet

AutoMigrateNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) Count

func (qs TaskQuerySet) Count() (int, error)

Count is an autogenerated method nolint: dupl

func (TaskQuerySet) CountsEq

func (qs TaskQuerySet) CountsEq(counts int) TaskQuerySet

CountsEq is an autogenerated method nolint: dupl

func (TaskQuerySet) CountsGt

func (qs TaskQuerySet) CountsGt(counts int) TaskQuerySet

CountsGt is an autogenerated method nolint: dupl

func (TaskQuerySet) CountsGte

func (qs TaskQuerySet) CountsGte(counts int) TaskQuerySet

CountsGte is an autogenerated method nolint: dupl

func (TaskQuerySet) CountsIn

func (qs TaskQuerySet) CountsIn(counts ...int) TaskQuerySet

CountsIn is an autogenerated method nolint: dupl

func (TaskQuerySet) CountsLt

func (qs TaskQuerySet) CountsLt(counts int) TaskQuerySet

CountsLt is an autogenerated method nolint: dupl

func (TaskQuerySet) CountsLte

func (qs TaskQuerySet) CountsLte(counts int) TaskQuerySet

CountsLte is an autogenerated method nolint: dupl

func (TaskQuerySet) CountsNe

func (qs TaskQuerySet) CountsNe(counts int) TaskQuerySet

CountsNe is an autogenerated method nolint: dupl

func (TaskQuerySet) CountsNotIn

func (qs TaskQuerySet) CountsNotIn(counts ...int) TaskQuerySet

CountsNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) CreatedAtEq

func (qs TaskQuerySet) CreatedAtEq(createdAt time.Time) TaskQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (TaskQuerySet) CreatedAtGt

func (qs TaskQuerySet) CreatedAtGt(createdAt time.Time) TaskQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (TaskQuerySet) CreatedAtGte

func (qs TaskQuerySet) CreatedAtGte(createdAt time.Time) TaskQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (TaskQuerySet) CreatedAtLt

func (qs TaskQuerySet) CreatedAtLt(createdAt time.Time) TaskQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (TaskQuerySet) CreatedAtLte

func (qs TaskQuerySet) CreatedAtLte(createdAt time.Time) TaskQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (TaskQuerySet) CreatedAtNe

func (qs TaskQuerySet) CreatedAtNe(createdAt time.Time) TaskQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (TaskQuerySet) CronSpecEq

func (qs TaskQuerySet) CronSpecEq(cronSpec string) TaskQuerySet

CronSpecEq is an autogenerated method nolint: dupl

func (TaskQuerySet) CronSpecIn

func (qs TaskQuerySet) CronSpecIn(cronSpec ...string) TaskQuerySet

CronSpecIn is an autogenerated method nolint: dupl

func (TaskQuerySet) CronSpecNe

func (qs TaskQuerySet) CronSpecNe(cronSpec string) TaskQuerySet

CronSpecNe is an autogenerated method nolint: dupl

func (TaskQuerySet) CronSpecNotIn

func (qs TaskQuerySet) CronSpecNotIn(cronSpec ...string) TaskQuerySet

CronSpecNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) Delete

func (qs TaskQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (TaskQuerySet) DeleteNum

func (qs TaskQuerySet) DeleteNum() (int64, error)

DeleteNum is an autogenerated method nolint: dupl

func (TaskQuerySet) DeleteNumUnscoped

func (qs TaskQuerySet) DeleteNumUnscoped() (int64, error)

DeleteNumUnscoped is an autogenerated method nolint: dupl

func (TaskQuerySet) GetUpdater

func (qs TaskQuerySet) GetUpdater() TaskUpdater

GetUpdater is an autogenerated method nolint: dupl

func (TaskQuerySet) IDEq

func (qs TaskQuerySet) IDEq(ID uint64) TaskQuerySet

IDEq is an autogenerated method nolint: dupl

func (TaskQuerySet) IDGt

func (qs TaskQuerySet) IDGt(ID uint64) TaskQuerySet

IDGt is an autogenerated method nolint: dupl

func (TaskQuerySet) IDGte

func (qs TaskQuerySet) IDGte(ID uint64) TaskQuerySet

IDGte is an autogenerated method nolint: dupl

func (TaskQuerySet) IDIn

func (qs TaskQuerySet) IDIn(ID ...uint64) TaskQuerySet

IDIn is an autogenerated method nolint: dupl

func (TaskQuerySet) IDLt

func (qs TaskQuerySet) IDLt(ID uint64) TaskQuerySet

IDLt is an autogenerated method nolint: dupl

func (TaskQuerySet) IDLte

func (qs TaskQuerySet) IDLte(ID uint64) TaskQuerySet

IDLte is an autogenerated method nolint: dupl

func (TaskQuerySet) IDNe

func (qs TaskQuerySet) IDNe(ID uint64) TaskQuerySet

IDNe is an autogenerated method nolint: dupl

func (TaskQuerySet) IDNotIn

func (qs TaskQuerySet) IDNotIn(ID ...uint64) TaskQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) Limit

func (qs TaskQuerySet) Limit(limit int) TaskQuerySet

Limit is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDelayEq

func (qs TaskQuerySet) LimitDelayEq(limitDelay int) TaskQuerySet

LimitDelayEq is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDelayGt

func (qs TaskQuerySet) LimitDelayGt(limitDelay int) TaskQuerySet

LimitDelayGt is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDelayGte

func (qs TaskQuerySet) LimitDelayGte(limitDelay int) TaskQuerySet

LimitDelayGte is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDelayIn

func (qs TaskQuerySet) LimitDelayIn(limitDelay ...int) TaskQuerySet

LimitDelayIn is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDelayLt

func (qs TaskQuerySet) LimitDelayLt(limitDelay int) TaskQuerySet

LimitDelayLt is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDelayLte

func (qs TaskQuerySet) LimitDelayLte(limitDelay int) TaskQuerySet

LimitDelayLte is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDelayNe

func (qs TaskQuerySet) LimitDelayNe(limitDelay int) TaskQuerySet

LimitDelayNe is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDelayNotIn

func (qs TaskQuerySet) LimitDelayNotIn(limitDelay ...int) TaskQuerySet

LimitDelayNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDomainGlobEq

func (qs TaskQuerySet) LimitDomainGlobEq(limitDomainGlob string) TaskQuerySet

LimitDomainGlobEq is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDomainGlobIn

func (qs TaskQuerySet) LimitDomainGlobIn(limitDomainGlob ...string) TaskQuerySet

LimitDomainGlobIn is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDomainGlobNe

func (qs TaskQuerySet) LimitDomainGlobNe(limitDomainGlob string) TaskQuerySet

LimitDomainGlobNe is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDomainGlobNotIn

func (qs TaskQuerySet) LimitDomainGlobNotIn(limitDomainGlob ...string) TaskQuerySet

LimitDomainGlobNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDomainRegexpEq

func (qs TaskQuerySet) LimitDomainRegexpEq(limitDomainRegexp string) TaskQuerySet

LimitDomainRegexpEq is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDomainRegexpIn

func (qs TaskQuerySet) LimitDomainRegexpIn(limitDomainRegexp ...string) TaskQuerySet

LimitDomainRegexpIn is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDomainRegexpNe

func (qs TaskQuerySet) LimitDomainRegexpNe(limitDomainRegexp string) TaskQuerySet

LimitDomainRegexpNe is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitDomainRegexpNotIn

func (qs TaskQuerySet) LimitDomainRegexpNotIn(limitDomainRegexp ...string) TaskQuerySet

LimitDomainRegexpNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitEnableEq

func (qs TaskQuerySet) LimitEnableEq(limitEnable bool) TaskQuerySet

LimitEnableEq is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitEnableIn

func (qs TaskQuerySet) LimitEnableIn(limitEnable ...bool) TaskQuerySet

LimitEnableIn is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitEnableNe

func (qs TaskQuerySet) LimitEnableNe(limitEnable bool) TaskQuerySet

LimitEnableNe is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitEnableNotIn

func (qs TaskQuerySet) LimitEnableNotIn(limitEnable ...bool) TaskQuerySet

LimitEnableNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitParallelismEq

func (qs TaskQuerySet) LimitParallelismEq(limitParallelism int) TaskQuerySet

LimitParallelismEq is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitParallelismGt

func (qs TaskQuerySet) LimitParallelismGt(limitParallelism int) TaskQuerySet

LimitParallelismGt is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitParallelismGte

func (qs TaskQuerySet) LimitParallelismGte(limitParallelism int) TaskQuerySet

LimitParallelismGte is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitParallelismIn

func (qs TaskQuerySet) LimitParallelismIn(limitParallelism ...int) TaskQuerySet

LimitParallelismIn is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitParallelismLt

func (qs TaskQuerySet) LimitParallelismLt(limitParallelism int) TaskQuerySet

LimitParallelismLt is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitParallelismLte

func (qs TaskQuerySet) LimitParallelismLte(limitParallelism int) TaskQuerySet

LimitParallelismLte is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitParallelismNe

func (qs TaskQuerySet) LimitParallelismNe(limitParallelism int) TaskQuerySet

LimitParallelismNe is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitParallelismNotIn

func (qs TaskQuerySet) LimitParallelismNotIn(limitParallelism ...int) TaskQuerySet

LimitParallelismNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitRandomDelayEq

func (qs TaskQuerySet) LimitRandomDelayEq(limitRandomDelay int) TaskQuerySet

LimitRandomDelayEq is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitRandomDelayGt

func (qs TaskQuerySet) LimitRandomDelayGt(limitRandomDelay int) TaskQuerySet

LimitRandomDelayGt is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitRandomDelayGte

func (qs TaskQuerySet) LimitRandomDelayGte(limitRandomDelay int) TaskQuerySet

LimitRandomDelayGte is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitRandomDelayIn

func (qs TaskQuerySet) LimitRandomDelayIn(limitRandomDelay ...int) TaskQuerySet

LimitRandomDelayIn is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitRandomDelayLt

func (qs TaskQuerySet) LimitRandomDelayLt(limitRandomDelay int) TaskQuerySet

LimitRandomDelayLt is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitRandomDelayLte

func (qs TaskQuerySet) LimitRandomDelayLte(limitRandomDelay int) TaskQuerySet

LimitRandomDelayLte is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitRandomDelayNe

func (qs TaskQuerySet) LimitRandomDelayNe(limitRandomDelay int) TaskQuerySet

LimitRandomDelayNe is an autogenerated method nolint: dupl

func (TaskQuerySet) LimitRandomDelayNotIn

func (qs TaskQuerySet) LimitRandomDelayNotIn(limitRandomDelay ...int) TaskQuerySet

LimitRandomDelayNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) Offset

func (qs TaskQuerySet) Offset(offset int) TaskQuerySet

Offset is an autogenerated method nolint: dupl

func (TaskQuerySet) One

func (qs TaskQuerySet) One(ret *Task) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (TaskQuerySet) OptAllowedDomainsEq

func (qs TaskQuerySet) OptAllowedDomainsEq(optAllowedDomains string) TaskQuerySet

OptAllowedDomainsEq is an autogenerated method nolint: dupl

func (TaskQuerySet) OptAllowedDomainsIn

func (qs TaskQuerySet) OptAllowedDomainsIn(optAllowedDomains ...string) TaskQuerySet

OptAllowedDomainsIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OptAllowedDomainsNe

func (qs TaskQuerySet) OptAllowedDomainsNe(optAllowedDomains string) TaskQuerySet

OptAllowedDomainsNe is an autogenerated method nolint: dupl

func (TaskQuerySet) OptAllowedDomainsNotIn

func (qs TaskQuerySet) OptAllowedDomainsNotIn(optAllowedDomains ...string) TaskQuerySet

OptAllowedDomainsNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxBodySizeEq

func (qs TaskQuerySet) OptMaxBodySizeEq(optMaxBodySize int) TaskQuerySet

OptMaxBodySizeEq is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxBodySizeGt

func (qs TaskQuerySet) OptMaxBodySizeGt(optMaxBodySize int) TaskQuerySet

OptMaxBodySizeGt is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxBodySizeGte

func (qs TaskQuerySet) OptMaxBodySizeGte(optMaxBodySize int) TaskQuerySet

OptMaxBodySizeGte is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxBodySizeIn

func (qs TaskQuerySet) OptMaxBodySizeIn(optMaxBodySize ...int) TaskQuerySet

OptMaxBodySizeIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxBodySizeLt

func (qs TaskQuerySet) OptMaxBodySizeLt(optMaxBodySize int) TaskQuerySet

OptMaxBodySizeLt is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxBodySizeLte

func (qs TaskQuerySet) OptMaxBodySizeLte(optMaxBodySize int) TaskQuerySet

OptMaxBodySizeLte is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxBodySizeNe

func (qs TaskQuerySet) OptMaxBodySizeNe(optMaxBodySize int) TaskQuerySet

OptMaxBodySizeNe is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxBodySizeNotIn

func (qs TaskQuerySet) OptMaxBodySizeNotIn(optMaxBodySize ...int) TaskQuerySet

OptMaxBodySizeNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxDepthEq

func (qs TaskQuerySet) OptMaxDepthEq(optMaxDepth int) TaskQuerySet

OptMaxDepthEq is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxDepthGt

func (qs TaskQuerySet) OptMaxDepthGt(optMaxDepth int) TaskQuerySet

OptMaxDepthGt is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxDepthGte

func (qs TaskQuerySet) OptMaxDepthGte(optMaxDepth int) TaskQuerySet

OptMaxDepthGte is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxDepthIn

func (qs TaskQuerySet) OptMaxDepthIn(optMaxDepth ...int) TaskQuerySet

OptMaxDepthIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxDepthLt

func (qs TaskQuerySet) OptMaxDepthLt(optMaxDepth int) TaskQuerySet

OptMaxDepthLt is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxDepthLte

func (qs TaskQuerySet) OptMaxDepthLte(optMaxDepth int) TaskQuerySet

OptMaxDepthLte is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxDepthNe

func (qs TaskQuerySet) OptMaxDepthNe(optMaxDepth int) TaskQuerySet

OptMaxDepthNe is an autogenerated method nolint: dupl

func (TaskQuerySet) OptMaxDepthNotIn

func (qs TaskQuerySet) OptMaxDepthNotIn(optMaxDepth ...int) TaskQuerySet

OptMaxDepthNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OptRequestTimeoutEq

func (qs TaskQuerySet) OptRequestTimeoutEq(optRequestTimeout int) TaskQuerySet

OptRequestTimeoutEq is an autogenerated method nolint: dupl

func (TaskQuerySet) OptRequestTimeoutGt

func (qs TaskQuerySet) OptRequestTimeoutGt(optRequestTimeout int) TaskQuerySet

OptRequestTimeoutGt is an autogenerated method nolint: dupl

func (TaskQuerySet) OptRequestTimeoutGte

func (qs TaskQuerySet) OptRequestTimeoutGte(optRequestTimeout int) TaskQuerySet

OptRequestTimeoutGte is an autogenerated method nolint: dupl

func (TaskQuerySet) OptRequestTimeoutIn

func (qs TaskQuerySet) OptRequestTimeoutIn(optRequestTimeout ...int) TaskQuerySet

OptRequestTimeoutIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OptRequestTimeoutLt

func (qs TaskQuerySet) OptRequestTimeoutLt(optRequestTimeout int) TaskQuerySet

OptRequestTimeoutLt is an autogenerated method nolint: dupl

func (TaskQuerySet) OptRequestTimeoutLte

func (qs TaskQuerySet) OptRequestTimeoutLte(optRequestTimeout int) TaskQuerySet

OptRequestTimeoutLte is an autogenerated method nolint: dupl

func (TaskQuerySet) OptRequestTimeoutNe

func (qs TaskQuerySet) OptRequestTimeoutNe(optRequestTimeout int) TaskQuerySet

OptRequestTimeoutNe is an autogenerated method nolint: dupl

func (TaskQuerySet) OptRequestTimeoutNotIn

func (qs TaskQuerySet) OptRequestTimeoutNotIn(optRequestTimeout ...int) TaskQuerySet

OptRequestTimeoutNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OptURLFiltersEq

func (qs TaskQuerySet) OptURLFiltersEq(optURLFilters string) TaskQuerySet

OptURLFiltersEq is an autogenerated method nolint: dupl

func (TaskQuerySet) OptURLFiltersIn

func (qs TaskQuerySet) OptURLFiltersIn(optURLFilters ...string) TaskQuerySet

OptURLFiltersIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OptURLFiltersNe

func (qs TaskQuerySet) OptURLFiltersNe(optURLFilters string) TaskQuerySet

OptURLFiltersNe is an autogenerated method nolint: dupl

func (TaskQuerySet) OptURLFiltersNotIn

func (qs TaskQuerySet) OptURLFiltersNotIn(optURLFilters ...string) TaskQuerySet

OptURLFiltersNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OptUserAgentEq

func (qs TaskQuerySet) OptUserAgentEq(optUserAgent string) TaskQuerySet

OptUserAgentEq is an autogenerated method nolint: dupl

func (TaskQuerySet) OptUserAgentIn

func (qs TaskQuerySet) OptUserAgentIn(optUserAgent ...string) TaskQuerySet

OptUserAgentIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OptUserAgentNe

func (qs TaskQuerySet) OptUserAgentNe(optUserAgent string) TaskQuerySet

OptUserAgentNe is an autogenerated method nolint: dupl

func (TaskQuerySet) OptUserAgentNotIn

func (qs TaskQuerySet) OptUserAgentNotIn(optUserAgent ...string) TaskQuerySet

OptUserAgentNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderAscByCounts

func (qs TaskQuerySet) OrderAscByCounts() TaskQuerySet

OrderAscByCounts is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderAscByCreatedAt

func (qs TaskQuerySet) OrderAscByCreatedAt() TaskQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderAscByID

func (qs TaskQuerySet) OrderAscByID() TaskQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderAscByLimitDelay

func (qs TaskQuerySet) OrderAscByLimitDelay() TaskQuerySet

OrderAscByLimitDelay is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderAscByLimitParallelism

func (qs TaskQuerySet) OrderAscByLimitParallelism() TaskQuerySet

OrderAscByLimitParallelism is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderAscByLimitRandomDelay

func (qs TaskQuerySet) OrderAscByLimitRandomDelay() TaskQuerySet

OrderAscByLimitRandomDelay is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderAscByOptMaxBodySize

func (qs TaskQuerySet) OrderAscByOptMaxBodySize() TaskQuerySet

OrderAscByOptMaxBodySize is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderAscByOptMaxDepth

func (qs TaskQuerySet) OrderAscByOptMaxDepth() TaskQuerySet

OrderAscByOptMaxDepth is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderAscByOptRequestTimeout

func (qs TaskQuerySet) OrderAscByOptRequestTimeout() TaskQuerySet

OrderAscByOptRequestTimeout is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderAscByOutputExportDBID

func (qs TaskQuerySet) OrderAscByOutputExportDBID() TaskQuerySet

OrderAscByOutputExportDBID is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderAscByStatus

func (qs TaskQuerySet) OrderAscByStatus() TaskQuerySet

OrderAscByStatus is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderAscByUpdatedAt

func (qs TaskQuerySet) OrderAscByUpdatedAt() TaskQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderDescByCounts

func (qs TaskQuerySet) OrderDescByCounts() TaskQuerySet

OrderDescByCounts is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderDescByCreatedAt

func (qs TaskQuerySet) OrderDescByCreatedAt() TaskQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderDescByID

func (qs TaskQuerySet) OrderDescByID() TaskQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderDescByLimitDelay

func (qs TaskQuerySet) OrderDescByLimitDelay() TaskQuerySet

OrderDescByLimitDelay is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderDescByLimitParallelism

func (qs TaskQuerySet) OrderDescByLimitParallelism() TaskQuerySet

OrderDescByLimitParallelism is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderDescByLimitRandomDelay

func (qs TaskQuerySet) OrderDescByLimitRandomDelay() TaskQuerySet

OrderDescByLimitRandomDelay is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderDescByOptMaxBodySize

func (qs TaskQuerySet) OrderDescByOptMaxBodySize() TaskQuerySet

OrderDescByOptMaxBodySize is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderDescByOptMaxDepth

func (qs TaskQuerySet) OrderDescByOptMaxDepth() TaskQuerySet

OrderDescByOptMaxDepth is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderDescByOptRequestTimeout

func (qs TaskQuerySet) OrderDescByOptRequestTimeout() TaskQuerySet

OrderDescByOptRequestTimeout is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderDescByOutputExportDBID

func (qs TaskQuerySet) OrderDescByOutputExportDBID() TaskQuerySet

OrderDescByOutputExportDBID is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderDescByStatus

func (qs TaskQuerySet) OrderDescByStatus() TaskQuerySet

OrderDescByStatus is an autogenerated method nolint: dupl

func (TaskQuerySet) OrderDescByUpdatedAt

func (qs TaskQuerySet) OrderDescByUpdatedAt() TaskQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (TaskQuerySet) OutputExportDBIDEq

func (qs TaskQuerySet) OutputExportDBIDEq(outputExportDBID uint64) TaskQuerySet

OutputExportDBIDEq is an autogenerated method nolint: dupl

func (TaskQuerySet) OutputExportDBIDGt

func (qs TaskQuerySet) OutputExportDBIDGt(outputExportDBID uint64) TaskQuerySet

OutputExportDBIDGt is an autogenerated method nolint: dupl

func (TaskQuerySet) OutputExportDBIDGte

func (qs TaskQuerySet) OutputExportDBIDGte(outputExportDBID uint64) TaskQuerySet

OutputExportDBIDGte is an autogenerated method nolint: dupl

func (TaskQuerySet) OutputExportDBIDIn

func (qs TaskQuerySet) OutputExportDBIDIn(outputExportDBID ...uint64) TaskQuerySet

OutputExportDBIDIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OutputExportDBIDLt

func (qs TaskQuerySet) OutputExportDBIDLt(outputExportDBID uint64) TaskQuerySet

OutputExportDBIDLt is an autogenerated method nolint: dupl

func (TaskQuerySet) OutputExportDBIDLte

func (qs TaskQuerySet) OutputExportDBIDLte(outputExportDBID uint64) TaskQuerySet

OutputExportDBIDLte is an autogenerated method nolint: dupl

func (TaskQuerySet) OutputExportDBIDNe

func (qs TaskQuerySet) OutputExportDBIDNe(outputExportDBID uint64) TaskQuerySet

OutputExportDBIDNe is an autogenerated method nolint: dupl

func (TaskQuerySet) OutputExportDBIDNotIn

func (qs TaskQuerySet) OutputExportDBIDNotIn(outputExportDBID ...uint64) TaskQuerySet

OutputExportDBIDNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OutputTypeEq

func (qs TaskQuerySet) OutputTypeEq(outputType string) TaskQuerySet

OutputTypeEq is an autogenerated method nolint: dupl

func (TaskQuerySet) OutputTypeIn

func (qs TaskQuerySet) OutputTypeIn(outputType ...string) TaskQuerySet

OutputTypeIn is an autogenerated method nolint: dupl

func (TaskQuerySet) OutputTypeNe

func (qs TaskQuerySet) OutputTypeNe(outputType string) TaskQuerySet

OutputTypeNe is an autogenerated method nolint: dupl

func (TaskQuerySet) OutputTypeNotIn

func (qs TaskQuerySet) OutputTypeNotIn(outputType ...string) TaskQuerySet

OutputTypeNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) ProxyURLsEq

func (qs TaskQuerySet) ProxyURLsEq(proxyURLs string) TaskQuerySet

ProxyURLsEq is an autogenerated method nolint: dupl

func (TaskQuerySet) ProxyURLsIn

func (qs TaskQuerySet) ProxyURLsIn(proxyURLs ...string) TaskQuerySet

ProxyURLsIn is an autogenerated method nolint: dupl

func (TaskQuerySet) ProxyURLsNe

func (qs TaskQuerySet) ProxyURLsNe(proxyURLs string) TaskQuerySet

ProxyURLsNe is an autogenerated method nolint: dupl

func (TaskQuerySet) ProxyURLsNotIn

func (qs TaskQuerySet) ProxyURLsNotIn(proxyURLs ...string) TaskQuerySet

ProxyURLsNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) StatusEq

func (qs TaskQuerySet) StatusEq(status common.TaskStatus) TaskQuerySet

StatusEq is an autogenerated method nolint: dupl

func (TaskQuerySet) StatusGt

func (qs TaskQuerySet) StatusGt(status common.TaskStatus) TaskQuerySet

StatusGt is an autogenerated method nolint: dupl

func (TaskQuerySet) StatusGte

func (qs TaskQuerySet) StatusGte(status common.TaskStatus) TaskQuerySet

StatusGte is an autogenerated method nolint: dupl

func (TaskQuerySet) StatusIn

func (qs TaskQuerySet) StatusIn(status ...common.TaskStatus) TaskQuerySet

StatusIn is an autogenerated method nolint: dupl

func (TaskQuerySet) StatusLt

func (qs TaskQuerySet) StatusLt(status common.TaskStatus) TaskQuerySet

StatusLt is an autogenerated method nolint: dupl

func (TaskQuerySet) StatusLte

func (qs TaskQuerySet) StatusLte(status common.TaskStatus) TaskQuerySet

StatusLte is an autogenerated method nolint: dupl

func (TaskQuerySet) StatusNe

func (qs TaskQuerySet) StatusNe(status common.TaskStatus) TaskQuerySet

StatusNe is an autogenerated method nolint: dupl

func (TaskQuerySet) StatusNotIn

func (qs TaskQuerySet) StatusNotIn(status ...common.TaskStatus) TaskQuerySet

StatusNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) TaskDescEq

func (qs TaskQuerySet) TaskDescEq(taskDesc string) TaskQuerySet

TaskDescEq is an autogenerated method nolint: dupl

func (TaskQuerySet) TaskDescIn

func (qs TaskQuerySet) TaskDescIn(taskDesc ...string) TaskQuerySet

TaskDescIn is an autogenerated method nolint: dupl

func (TaskQuerySet) TaskDescNe

func (qs TaskQuerySet) TaskDescNe(taskDesc string) TaskQuerySet

TaskDescNe is an autogenerated method nolint: dupl

func (TaskQuerySet) TaskDescNotIn

func (qs TaskQuerySet) TaskDescNotIn(taskDesc ...string) TaskQuerySet

TaskDescNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) TaskNameEq

func (qs TaskQuerySet) TaskNameEq(taskName string) TaskQuerySet

TaskNameEq is an autogenerated method nolint: dupl

func (TaskQuerySet) TaskNameIn

func (qs TaskQuerySet) TaskNameIn(taskName ...string) TaskQuerySet

TaskNameIn is an autogenerated method nolint: dupl

func (TaskQuerySet) TaskNameNe

func (qs TaskQuerySet) TaskNameNe(taskName string) TaskQuerySet

TaskNameNe is an autogenerated method nolint: dupl

func (TaskQuerySet) TaskNameNotIn

func (qs TaskQuerySet) TaskNameNotIn(taskName ...string) TaskQuerySet

TaskNameNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) TaskRuleNameEq

func (qs TaskQuerySet) TaskRuleNameEq(taskRuleName string) TaskQuerySet

TaskRuleNameEq is an autogenerated method nolint: dupl

func (TaskQuerySet) TaskRuleNameIn

func (qs TaskQuerySet) TaskRuleNameIn(taskRuleName ...string) TaskQuerySet

TaskRuleNameIn is an autogenerated method nolint: dupl

func (TaskQuerySet) TaskRuleNameNe

func (qs TaskQuerySet) TaskRuleNameNe(taskRuleName string) TaskQuerySet

TaskRuleNameNe is an autogenerated method nolint: dupl

func (TaskQuerySet) TaskRuleNameNotIn

func (qs TaskQuerySet) TaskRuleNameNotIn(taskRuleName ...string) TaskQuerySet

TaskRuleNameNotIn is an autogenerated method nolint: dupl

func (TaskQuerySet) UpdatedAtEq

func (qs TaskQuerySet) UpdatedAtEq(updatedAt time.Time) TaskQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (TaskQuerySet) UpdatedAtGt

func (qs TaskQuerySet) UpdatedAtGt(updatedAt time.Time) TaskQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (TaskQuerySet) UpdatedAtGte

func (qs TaskQuerySet) UpdatedAtGte(updatedAt time.Time) TaskQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (TaskQuerySet) UpdatedAtLt

func (qs TaskQuerySet) UpdatedAtLt(updatedAt time.Time) TaskQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (TaskQuerySet) UpdatedAtLte

func (qs TaskQuerySet) UpdatedAtLte(updatedAt time.Time) TaskQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (TaskQuerySet) UpdatedAtNe

func (qs TaskQuerySet) UpdatedAtNe(updatedAt time.Time) TaskQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

type TaskUpdater

type TaskUpdater struct {
	// contains filtered or unexported fields
}

TaskUpdater is an Task updates manager

func NewTaskUpdater

func NewTaskUpdater(db *gorm.DB) TaskUpdater

NewTaskUpdater creates new Task updater nolint: dupl

func (TaskUpdater) SetAutoMigrate

func (u TaskUpdater) SetAutoMigrate(autoMigrate bool) TaskUpdater

SetAutoMigrate is an autogenerated method nolint: dupl

func (TaskUpdater) SetCounts

func (u TaskUpdater) SetCounts(counts int) TaskUpdater

SetCounts is an autogenerated method nolint: dupl

func (TaskUpdater) SetCreatedAt

func (u TaskUpdater) SetCreatedAt(createdAt time.Time) TaskUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (TaskUpdater) SetCronSpec

func (u TaskUpdater) SetCronSpec(cronSpec string) TaskUpdater

SetCronSpec is an autogenerated method nolint: dupl

func (TaskUpdater) SetID

func (u TaskUpdater) SetID(ID uint64) TaskUpdater

SetID is an autogenerated method nolint: dupl

func (TaskUpdater) SetLimitDelay

func (u TaskUpdater) SetLimitDelay(limitDelay int) TaskUpdater

SetLimitDelay is an autogenerated method nolint: dupl

func (TaskUpdater) SetLimitDomainGlob

func (u TaskUpdater) SetLimitDomainGlob(limitDomainGlob string) TaskUpdater

SetLimitDomainGlob is an autogenerated method nolint: dupl

func (TaskUpdater) SetLimitDomainRegexp

func (u TaskUpdater) SetLimitDomainRegexp(limitDomainRegexp string) TaskUpdater

SetLimitDomainRegexp is an autogenerated method nolint: dupl

func (TaskUpdater) SetLimitEnable

func (u TaskUpdater) SetLimitEnable(limitEnable bool) TaskUpdater

SetLimitEnable is an autogenerated method nolint: dupl

func (TaskUpdater) SetLimitParallelism

func (u TaskUpdater) SetLimitParallelism(limitParallelism int) TaskUpdater

SetLimitParallelism is an autogenerated method nolint: dupl

func (TaskUpdater) SetLimitRandomDelay

func (u TaskUpdater) SetLimitRandomDelay(limitRandomDelay int) TaskUpdater

SetLimitRandomDelay is an autogenerated method nolint: dupl

func (TaskUpdater) SetOptAllowedDomains

func (u TaskUpdater) SetOptAllowedDomains(optAllowedDomains string) TaskUpdater

SetOptAllowedDomains is an autogenerated method nolint: dupl

func (TaskUpdater) SetOptMaxBodySize

func (u TaskUpdater) SetOptMaxBodySize(optMaxBodySize int) TaskUpdater

SetOptMaxBodySize is an autogenerated method nolint: dupl

func (TaskUpdater) SetOptMaxDepth

func (u TaskUpdater) SetOptMaxDepth(optMaxDepth int) TaskUpdater

SetOptMaxDepth is an autogenerated method nolint: dupl

func (TaskUpdater) SetOptRequestTimeout

func (u TaskUpdater) SetOptRequestTimeout(optRequestTimeout int) TaskUpdater

SetOptRequestTimeout is an autogenerated method nolint: dupl

func (TaskUpdater) SetOptURLFilters

func (u TaskUpdater) SetOptURLFilters(optURLFilters string) TaskUpdater

SetOptURLFilters is an autogenerated method nolint: dupl

func (TaskUpdater) SetOptUserAgent

func (u TaskUpdater) SetOptUserAgent(optUserAgent string) TaskUpdater

SetOptUserAgent is an autogenerated method nolint: dupl

func (TaskUpdater) SetOutputExportDBID

func (u TaskUpdater) SetOutputExportDBID(outputExportDBID uint64) TaskUpdater

SetOutputExportDBID is an autogenerated method nolint: dupl

func (TaskUpdater) SetOutputType

func (u TaskUpdater) SetOutputType(outputType string) TaskUpdater

SetOutputType is an autogenerated method nolint: dupl

func (TaskUpdater) SetProxyURLs

func (u TaskUpdater) SetProxyURLs(proxyURLs string) TaskUpdater

SetProxyURLs is an autogenerated method nolint: dupl

func (TaskUpdater) SetStatus

func (u TaskUpdater) SetStatus(status common.TaskStatus) TaskUpdater

SetStatus is an autogenerated method nolint: dupl

func (TaskUpdater) SetTaskDesc

func (u TaskUpdater) SetTaskDesc(taskDesc string) TaskUpdater

SetTaskDesc is an autogenerated method nolint: dupl

func (TaskUpdater) SetTaskName

func (u TaskUpdater) SetTaskName(taskName string) TaskUpdater

SetTaskName is an autogenerated method nolint: dupl

func (TaskUpdater) SetTaskRuleName

func (u TaskUpdater) SetTaskRuleName(taskRuleName string) TaskUpdater

SetTaskRuleName is an autogenerated method nolint: dupl

func (TaskUpdater) SetUpdatedAt

func (u TaskUpdater) SetUpdatedAt(updatedAt time.Time) TaskUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (TaskUpdater) Update

func (u TaskUpdater) Update() error

Update is an autogenerated method nolint: dupl

func (TaskUpdater) UpdateNum

func (u TaskUpdater) UpdateNum() (int64, error)

UpdateNum is an autogenerated method nolint: dupl

type User

type User struct {
	ID           uint64    `json:"id,string" gorm:"column:id;type:bigint unsigned AUTO_INCREMENT;primary_key"`
	UserName     string    `json:"user_name" gorm:"column:user_name;type:varchar(32) not null;unique_index:uk_uname"`
	Password     string    `json:"-" gorm:"column:password;type:varchar(128) not null"`
	Email        string    `json:"email" gorm:"column:email;type:varchar(32) not null default '';index:idx_email"`
	Roles        string    `json:"roles" gorm:"column:roles;type:varchar(128) not null default ''"`
	Introduction string    `json:"introduction" gorm:"column:introduction;type:varchar(128) not null default ''"`
	Avatar       string    `json:"avatar" gorm:"column:avatar;type:varchar(256) not null default ''"`
	CreatedAt    time.Time `json:"created_at" gorm:"column:created_at;type:datetime;not null;default:CURRENT_TIMESTAMP;index:idx_created_at"`
	UpdatedAt    time.Time `` /* 140-byte string literal not displayed */
}

gen:qs

func IsValidUser

func IsValidUser(db *gorm.DB, username, password string) (bool, *User, error)

func (*User) Create

func (o *User) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*User) Delete

func (o *User) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*User) TableName

func (o *User) TableName() string

func (*User) Update

func (o *User) Update(db *gorm.DB, fields ...UserDBSchemaField) error

Update updates User fields by primary key nolint: dupl

type UserDBSchemaField

type UserDBSchemaField string

UserDBSchemaField describes database schema field. It requires for method 'Update'

func (UserDBSchemaField) String

func (f UserDBSchemaField) String() string

String method returns string representation of field. nolint: dupl

type UserQuerySet

type UserQuerySet struct {
	// contains filtered or unexported fields
}

UserQuerySet is an queryset type for User

func NewUserQuerySet

func NewUserQuerySet(db *gorm.DB) UserQuerySet

NewUserQuerySet constructs new UserQuerySet

func (UserQuerySet) All

func (qs UserQuerySet) All(ret *[]User) error

All is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarEq

func (qs UserQuerySet) AvatarEq(avatar string) UserQuerySet

AvatarEq is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarIn

func (qs UserQuerySet) AvatarIn(avatar ...string) UserQuerySet

AvatarIn is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarNe

func (qs UserQuerySet) AvatarNe(avatar string) UserQuerySet

AvatarNe is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarNotIn

func (qs UserQuerySet) AvatarNotIn(avatar ...string) UserQuerySet

AvatarNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) Count

func (qs UserQuerySet) Count() (int, error)

Count is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtEq

func (qs UserQuerySet) CreatedAtEq(createdAt time.Time) UserQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtGt

func (qs UserQuerySet) CreatedAtGt(createdAt time.Time) UserQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtGte

func (qs UserQuerySet) CreatedAtGte(createdAt time.Time) UserQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtLt

func (qs UserQuerySet) CreatedAtLt(createdAt time.Time) UserQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtLte

func (qs UserQuerySet) CreatedAtLte(createdAt time.Time) UserQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtNe

func (qs UserQuerySet) CreatedAtNe(createdAt time.Time) UserQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (UserQuerySet) Delete

func (qs UserQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (UserQuerySet) DeleteNum

func (qs UserQuerySet) DeleteNum() (int64, error)

DeleteNum is an autogenerated method nolint: dupl

func (UserQuerySet) DeleteNumUnscoped

func (qs UserQuerySet) DeleteNumUnscoped() (int64, error)

DeleteNumUnscoped is an autogenerated method nolint: dupl

func (UserQuerySet) EmailEq

func (qs UserQuerySet) EmailEq(email string) UserQuerySet

EmailEq is an autogenerated method nolint: dupl

func (UserQuerySet) EmailIn

func (qs UserQuerySet) EmailIn(email ...string) UserQuerySet

EmailIn is an autogenerated method nolint: dupl

func (UserQuerySet) EmailNe

func (qs UserQuerySet) EmailNe(email string) UserQuerySet

EmailNe is an autogenerated method nolint: dupl

func (UserQuerySet) EmailNotIn

func (qs UserQuerySet) EmailNotIn(email ...string) UserQuerySet

EmailNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) GetUpdater

func (qs UserQuerySet) GetUpdater() UserUpdater

GetUpdater is an autogenerated method nolint: dupl

func (UserQuerySet) IDEq

func (qs UserQuerySet) IDEq(ID uint64) UserQuerySet

IDEq is an autogenerated method nolint: dupl

func (UserQuerySet) IDGt

func (qs UserQuerySet) IDGt(ID uint64) UserQuerySet

IDGt is an autogenerated method nolint: dupl

func (UserQuerySet) IDGte

func (qs UserQuerySet) IDGte(ID uint64) UserQuerySet

IDGte is an autogenerated method nolint: dupl

func (UserQuerySet) IDIn

func (qs UserQuerySet) IDIn(ID ...uint64) UserQuerySet

IDIn is an autogenerated method nolint: dupl

func (UserQuerySet) IDLt

func (qs UserQuerySet) IDLt(ID uint64) UserQuerySet

IDLt is an autogenerated method nolint: dupl

func (UserQuerySet) IDLte

func (qs UserQuerySet) IDLte(ID uint64) UserQuerySet

IDLte is an autogenerated method nolint: dupl

func (UserQuerySet) IDNe

func (qs UserQuerySet) IDNe(ID uint64) UserQuerySet

IDNe is an autogenerated method nolint: dupl

func (UserQuerySet) IDNotIn

func (qs UserQuerySet) IDNotIn(ID ...uint64) UserQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) IntroductionEq

func (qs UserQuerySet) IntroductionEq(introduction string) UserQuerySet

IntroductionEq is an autogenerated method nolint: dupl

func (UserQuerySet) IntroductionIn

func (qs UserQuerySet) IntroductionIn(introduction ...string) UserQuerySet

IntroductionIn is an autogenerated method nolint: dupl

func (UserQuerySet) IntroductionNe

func (qs UserQuerySet) IntroductionNe(introduction string) UserQuerySet

IntroductionNe is an autogenerated method nolint: dupl

func (UserQuerySet) IntroductionNotIn

func (qs UserQuerySet) IntroductionNotIn(introduction ...string) UserQuerySet

IntroductionNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) Limit

func (qs UserQuerySet) Limit(limit int) UserQuerySet

Limit is an autogenerated method nolint: dupl

func (UserQuerySet) Offset

func (qs UserQuerySet) Offset(offset int) UserQuerySet

Offset is an autogenerated method nolint: dupl

func (UserQuerySet) One

func (qs UserQuerySet) One(ret *User) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (UserQuerySet) OrderAscByCreatedAt

func (qs UserQuerySet) OrderAscByCreatedAt() UserQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscByID

func (qs UserQuerySet) OrderAscByID() UserQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscByUpdatedAt

func (qs UserQuerySet) OrderAscByUpdatedAt() UserQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByCreatedAt

func (qs UserQuerySet) OrderDescByCreatedAt() UserQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByID

func (qs UserQuerySet) OrderDescByID() UserQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByUpdatedAt

func (qs UserQuerySet) OrderDescByUpdatedAt() UserQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (UserQuerySet) PasswordEq

func (qs UserQuerySet) PasswordEq(password string) UserQuerySet

PasswordEq is an autogenerated method nolint: dupl

func (UserQuerySet) PasswordIn

func (qs UserQuerySet) PasswordIn(password ...string) UserQuerySet

PasswordIn is an autogenerated method nolint: dupl

func (UserQuerySet) PasswordNe

func (qs UserQuerySet) PasswordNe(password string) UserQuerySet

PasswordNe is an autogenerated method nolint: dupl

func (UserQuerySet) PasswordNotIn

func (qs UserQuerySet) PasswordNotIn(password ...string) UserQuerySet

PasswordNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) RolesEq

func (qs UserQuerySet) RolesEq(roles string) UserQuerySet

RolesEq is an autogenerated method nolint: dupl

func (UserQuerySet) RolesIn

func (qs UserQuerySet) RolesIn(roles ...string) UserQuerySet

RolesIn is an autogenerated method nolint: dupl

func (UserQuerySet) RolesNe

func (qs UserQuerySet) RolesNe(roles string) UserQuerySet

RolesNe is an autogenerated method nolint: dupl

func (UserQuerySet) RolesNotIn

func (qs UserQuerySet) RolesNotIn(roles ...string) UserQuerySet

RolesNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtEq

func (qs UserQuerySet) UpdatedAtEq(updatedAt time.Time) UserQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtGt

func (qs UserQuerySet) UpdatedAtGt(updatedAt time.Time) UserQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtGte

func (qs UserQuerySet) UpdatedAtGte(updatedAt time.Time) UserQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtLt

func (qs UserQuerySet) UpdatedAtLt(updatedAt time.Time) UserQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtLte

func (qs UserQuerySet) UpdatedAtLte(updatedAt time.Time) UserQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtNe

func (qs UserQuerySet) UpdatedAtNe(updatedAt time.Time) UserQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

func (UserQuerySet) UserNameEq

func (qs UserQuerySet) UserNameEq(userName string) UserQuerySet

UserNameEq is an autogenerated method nolint: dupl

func (UserQuerySet) UserNameIn

func (qs UserQuerySet) UserNameIn(userName ...string) UserQuerySet

UserNameIn is an autogenerated method nolint: dupl

func (UserQuerySet) UserNameNe

func (qs UserQuerySet) UserNameNe(userName string) UserQuerySet

UserNameNe is an autogenerated method nolint: dupl

func (UserQuerySet) UserNameNotIn

func (qs UserQuerySet) UserNameNotIn(userName ...string) UserQuerySet

UserNameNotIn is an autogenerated method nolint: dupl

type UserUpdater

type UserUpdater struct {
	// contains filtered or unexported fields
}

UserUpdater is an User updates manager

func NewUserUpdater

func NewUserUpdater(db *gorm.DB) UserUpdater

NewUserUpdater creates new User updater nolint: dupl

func (UserUpdater) SetAvatar

func (u UserUpdater) SetAvatar(avatar string) UserUpdater

SetAvatar is an autogenerated method nolint: dupl

func (UserUpdater) SetCreatedAt

func (u UserUpdater) SetCreatedAt(createdAt time.Time) UserUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (UserUpdater) SetEmail

func (u UserUpdater) SetEmail(email string) UserUpdater

SetEmail is an autogenerated method nolint: dupl

func (UserUpdater) SetID

func (u UserUpdater) SetID(ID uint64) UserUpdater

SetID is an autogenerated method nolint: dupl

func (UserUpdater) SetIntroduction

func (u UserUpdater) SetIntroduction(introduction string) UserUpdater

SetIntroduction is an autogenerated method nolint: dupl

func (UserUpdater) SetPassword

func (u UserUpdater) SetPassword(password string) UserUpdater

SetPassword is an autogenerated method nolint: dupl

func (UserUpdater) SetRoles

func (u UserUpdater) SetRoles(roles string) UserUpdater

SetRoles is an autogenerated method nolint: dupl

func (UserUpdater) SetUpdatedAt

func (u UserUpdater) SetUpdatedAt(updatedAt time.Time) UserUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (UserUpdater) SetUserName

func (u UserUpdater) SetUserName(userName string) UserUpdater

SetUserName is an autogenerated method nolint: dupl

func (UserUpdater) Update

func (u UserUpdater) Update() error

Update is an autogenerated method nolint: dupl

func (UserUpdater) UpdateNum

func (u UserUpdater) UpdateNum() (int64, error)

UpdateNum is an autogenerated method nolint: dupl

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL