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 ¶
- Variables
- func GenUserHashPassword(password string) (string, error)
- func InitAdminUserIfNeeded(db *gorm.DB) error
- type ExportDB
- type ExportDBDBSchemaField
- type ExportDBQuerySet
- func (qs ExportDBQuerySet) All(ret *[]ExportDB) error
- func (qs ExportDBQuerySet) Count() (int, error)
- func (qs ExportDBQuerySet) CreatedAtEq(createdAt time.Time) ExportDBQuerySet
- func (qs ExportDBQuerySet) CreatedAtGt(createdAt time.Time) ExportDBQuerySet
- func (qs ExportDBQuerySet) CreatedAtGte(createdAt time.Time) ExportDBQuerySet
- func (qs ExportDBQuerySet) CreatedAtLt(createdAt time.Time) ExportDBQuerySet
- func (qs ExportDBQuerySet) CreatedAtLte(createdAt time.Time) ExportDBQuerySet
- func (qs ExportDBQuerySet) CreatedAtNe(createdAt time.Time) ExportDBQuerySet
- func (qs ExportDBQuerySet) DBNameEq(dBName string) ExportDBQuerySet
- func (qs ExportDBQuerySet) DBNameIn(dBName ...string) ExportDBQuerySet
- func (qs ExportDBQuerySet) DBNameNe(dBName string) ExportDBQuerySet
- func (qs ExportDBQuerySet) DBNameNotIn(dBName ...string) ExportDBQuerySet
- func (qs ExportDBQuerySet) Delete() error
- func (qs ExportDBQuerySet) DeleteNum() (int64, error)
- func (qs ExportDBQuerySet) DeleteNumUnscoped() (int64, error)
- func (qs ExportDBQuerySet) GetUpdater() ExportDBUpdater
- func (qs ExportDBQuerySet) HostEq(host string) ExportDBQuerySet
- func (qs ExportDBQuerySet) HostIn(host ...string) ExportDBQuerySet
- func (qs ExportDBQuerySet) HostNe(host string) ExportDBQuerySet
- func (qs ExportDBQuerySet) HostNotIn(host ...string) ExportDBQuerySet
- func (qs ExportDBQuerySet) IDEq(ID uint64) ExportDBQuerySet
- func (qs ExportDBQuerySet) IDGt(ID uint64) ExportDBQuerySet
- func (qs ExportDBQuerySet) IDGte(ID uint64) ExportDBQuerySet
- func (qs ExportDBQuerySet) IDIn(ID ...uint64) ExportDBQuerySet
- func (qs ExportDBQuerySet) IDLt(ID uint64) ExportDBQuerySet
- func (qs ExportDBQuerySet) IDLte(ID uint64) ExportDBQuerySet
- func (qs ExportDBQuerySet) IDNe(ID uint64) ExportDBQuerySet
- func (qs ExportDBQuerySet) IDNotIn(ID ...uint64) ExportDBQuerySet
- func (qs ExportDBQuerySet) Limit(limit int) ExportDBQuerySet
- func (qs ExportDBQuerySet) Offset(offset int) ExportDBQuerySet
- func (qs ExportDBQuerySet) One(ret *ExportDB) error
- func (qs ExportDBQuerySet) OrderAscByCreatedAt() ExportDBQuerySet
- func (qs ExportDBQuerySet) OrderAscByID() ExportDBQuerySet
- func (qs ExportDBQuerySet) OrderAscByPort() ExportDBQuerySet
- func (qs ExportDBQuerySet) OrderAscByUpdatedAt() ExportDBQuerySet
- func (qs ExportDBQuerySet) OrderDescByCreatedAt() ExportDBQuerySet
- func (qs ExportDBQuerySet) OrderDescByID() ExportDBQuerySet
- func (qs ExportDBQuerySet) OrderDescByPort() ExportDBQuerySet
- func (qs ExportDBQuerySet) OrderDescByUpdatedAt() ExportDBQuerySet
- func (qs ExportDBQuerySet) PasswordEq(password string) ExportDBQuerySet
- func (qs ExportDBQuerySet) PasswordIn(password ...string) ExportDBQuerySet
- func (qs ExportDBQuerySet) PasswordNe(password string) ExportDBQuerySet
- func (qs ExportDBQuerySet) PasswordNotIn(password ...string) ExportDBQuerySet
- func (qs ExportDBQuerySet) PortEq(port int) ExportDBQuerySet
- func (qs ExportDBQuerySet) PortGt(port int) ExportDBQuerySet
- func (qs ExportDBQuerySet) PortGte(port int) ExportDBQuerySet
- func (qs ExportDBQuerySet) PortIn(port ...int) ExportDBQuerySet
- func (qs ExportDBQuerySet) PortLt(port int) ExportDBQuerySet
- func (qs ExportDBQuerySet) PortLte(port int) ExportDBQuerySet
- func (qs ExportDBQuerySet) PortNe(port int) ExportDBQuerySet
- func (qs ExportDBQuerySet) PortNotIn(port ...int) ExportDBQuerySet
- func (qs ExportDBQuerySet) ShowNameEq(showName string) ExportDBQuerySet
- func (qs ExportDBQuerySet) ShowNameIn(showName ...string) ExportDBQuerySet
- func (qs ExportDBQuerySet) ShowNameNe(showName string) ExportDBQuerySet
- func (qs ExportDBQuerySet) ShowNameNotIn(showName ...string) ExportDBQuerySet
- func (qs ExportDBQuerySet) UpdatedAtEq(updatedAt time.Time) ExportDBQuerySet
- func (qs ExportDBQuerySet) UpdatedAtGt(updatedAt time.Time) ExportDBQuerySet
- func (qs ExportDBQuerySet) UpdatedAtGte(updatedAt time.Time) ExportDBQuerySet
- func (qs ExportDBQuerySet) UpdatedAtLt(updatedAt time.Time) ExportDBQuerySet
- func (qs ExportDBQuerySet) UpdatedAtLte(updatedAt time.Time) ExportDBQuerySet
- func (qs ExportDBQuerySet) UpdatedAtNe(updatedAt time.Time) ExportDBQuerySet
- func (qs ExportDBQuerySet) UserEq(user string) ExportDBQuerySet
- func (qs ExportDBQuerySet) UserIn(user ...string) ExportDBQuerySet
- func (qs ExportDBQuerySet) UserNe(user string) ExportDBQuerySet
- func (qs ExportDBQuerySet) UserNotIn(user ...string) ExportDBQuerySet
- type ExportDBUpdater
- func (u ExportDBUpdater) SetCreatedAt(createdAt time.Time) ExportDBUpdater
- func (u ExportDBUpdater) SetDBName(dBName string) ExportDBUpdater
- func (u ExportDBUpdater) SetHost(host string) ExportDBUpdater
- func (u ExportDBUpdater) SetID(ID uint64) ExportDBUpdater
- func (u ExportDBUpdater) SetPassword(password string) ExportDBUpdater
- func (u ExportDBUpdater) SetPort(port int) ExportDBUpdater
- func (u ExportDBUpdater) SetShowName(showName string) ExportDBUpdater
- func (u ExportDBUpdater) SetUpdatedAt(updatedAt time.Time) ExportDBUpdater
- func (u ExportDBUpdater) SetUser(user string) ExportDBUpdater
- func (u ExportDBUpdater) Update() error
- func (u ExportDBUpdater) UpdateNum() (int64, error)
- type Task
- type TaskDBSchemaField
- type TaskQuerySet
- func (qs TaskQuerySet) All(ret *[]Task) error
- func (qs TaskQuerySet) AutoMigrateEq(autoMigrate bool) TaskQuerySet
- func (qs TaskQuerySet) AutoMigrateIn(autoMigrate ...bool) TaskQuerySet
- func (qs TaskQuerySet) AutoMigrateNe(autoMigrate bool) TaskQuerySet
- func (qs TaskQuerySet) AutoMigrateNotIn(autoMigrate ...bool) TaskQuerySet
- func (qs TaskQuerySet) Count() (int, error)
- func (qs TaskQuerySet) CountsEq(counts int) TaskQuerySet
- func (qs TaskQuerySet) CountsGt(counts int) TaskQuerySet
- func (qs TaskQuerySet) CountsGte(counts int) TaskQuerySet
- func (qs TaskQuerySet) CountsIn(counts ...int) TaskQuerySet
- func (qs TaskQuerySet) CountsLt(counts int) TaskQuerySet
- func (qs TaskQuerySet) CountsLte(counts int) TaskQuerySet
- func (qs TaskQuerySet) CountsNe(counts int) TaskQuerySet
- func (qs TaskQuerySet) CountsNotIn(counts ...int) TaskQuerySet
- func (qs TaskQuerySet) CreatedAtEq(createdAt time.Time) TaskQuerySet
- func (qs TaskQuerySet) CreatedAtGt(createdAt time.Time) TaskQuerySet
- func (qs TaskQuerySet) CreatedAtGte(createdAt time.Time) TaskQuerySet
- func (qs TaskQuerySet) CreatedAtLt(createdAt time.Time) TaskQuerySet
- func (qs TaskQuerySet) CreatedAtLte(createdAt time.Time) TaskQuerySet
- func (qs TaskQuerySet) CreatedAtNe(createdAt time.Time) TaskQuerySet
- func (qs TaskQuerySet) CronSpecEq(cronSpec string) TaskQuerySet
- func (qs TaskQuerySet) CronSpecIn(cronSpec ...string) TaskQuerySet
- func (qs TaskQuerySet) CronSpecNe(cronSpec string) TaskQuerySet
- func (qs TaskQuerySet) CronSpecNotIn(cronSpec ...string) TaskQuerySet
- func (qs TaskQuerySet) Delete() error
- func (qs TaskQuerySet) DeleteNum() (int64, error)
- func (qs TaskQuerySet) DeleteNumUnscoped() (int64, error)
- func (qs TaskQuerySet) GetUpdater() TaskUpdater
- func (qs TaskQuerySet) IDEq(ID uint64) TaskQuerySet
- func (qs TaskQuerySet) IDGt(ID uint64) TaskQuerySet
- func (qs TaskQuerySet) IDGte(ID uint64) TaskQuerySet
- func (qs TaskQuerySet) IDIn(ID ...uint64) TaskQuerySet
- func (qs TaskQuerySet) IDLt(ID uint64) TaskQuerySet
- func (qs TaskQuerySet) IDLte(ID uint64) TaskQuerySet
- func (qs TaskQuerySet) IDNe(ID uint64) TaskQuerySet
- func (qs TaskQuerySet) IDNotIn(ID ...uint64) TaskQuerySet
- func (qs TaskQuerySet) Limit(limit int) TaskQuerySet
- func (qs TaskQuerySet) LimitDelayEq(limitDelay int) TaskQuerySet
- func (qs TaskQuerySet) LimitDelayGt(limitDelay int) TaskQuerySet
- func (qs TaskQuerySet) LimitDelayGte(limitDelay int) TaskQuerySet
- func (qs TaskQuerySet) LimitDelayIn(limitDelay ...int) TaskQuerySet
- func (qs TaskQuerySet) LimitDelayLt(limitDelay int) TaskQuerySet
- func (qs TaskQuerySet) LimitDelayLte(limitDelay int) TaskQuerySet
- func (qs TaskQuerySet) LimitDelayNe(limitDelay int) TaskQuerySet
- func (qs TaskQuerySet) LimitDelayNotIn(limitDelay ...int) TaskQuerySet
- func (qs TaskQuerySet) LimitDomainGlobEq(limitDomainGlob string) TaskQuerySet
- func (qs TaskQuerySet) LimitDomainGlobIn(limitDomainGlob ...string) TaskQuerySet
- func (qs TaskQuerySet) LimitDomainGlobNe(limitDomainGlob string) TaskQuerySet
- func (qs TaskQuerySet) LimitDomainGlobNotIn(limitDomainGlob ...string) TaskQuerySet
- func (qs TaskQuerySet) LimitDomainRegexpEq(limitDomainRegexp string) TaskQuerySet
- func (qs TaskQuerySet) LimitDomainRegexpIn(limitDomainRegexp ...string) TaskQuerySet
- func (qs TaskQuerySet) LimitDomainRegexpNe(limitDomainRegexp string) TaskQuerySet
- func (qs TaskQuerySet) LimitDomainRegexpNotIn(limitDomainRegexp ...string) TaskQuerySet
- func (qs TaskQuerySet) LimitEnableEq(limitEnable bool) TaskQuerySet
- func (qs TaskQuerySet) LimitEnableIn(limitEnable ...bool) TaskQuerySet
- func (qs TaskQuerySet) LimitEnableNe(limitEnable bool) TaskQuerySet
- func (qs TaskQuerySet) LimitEnableNotIn(limitEnable ...bool) TaskQuerySet
- func (qs TaskQuerySet) LimitParallelismEq(limitParallelism int) TaskQuerySet
- func (qs TaskQuerySet) LimitParallelismGt(limitParallelism int) TaskQuerySet
- func (qs TaskQuerySet) LimitParallelismGte(limitParallelism int) TaskQuerySet
- func (qs TaskQuerySet) LimitParallelismIn(limitParallelism ...int) TaskQuerySet
- func (qs TaskQuerySet) LimitParallelismLt(limitParallelism int) TaskQuerySet
- func (qs TaskQuerySet) LimitParallelismLte(limitParallelism int) TaskQuerySet
- func (qs TaskQuerySet) LimitParallelismNe(limitParallelism int) TaskQuerySet
- func (qs TaskQuerySet) LimitParallelismNotIn(limitParallelism ...int) TaskQuerySet
- func (qs TaskQuerySet) LimitRandomDelayEq(limitRandomDelay int) TaskQuerySet
- func (qs TaskQuerySet) LimitRandomDelayGt(limitRandomDelay int) TaskQuerySet
- func (qs TaskQuerySet) LimitRandomDelayGte(limitRandomDelay int) TaskQuerySet
- func (qs TaskQuerySet) LimitRandomDelayIn(limitRandomDelay ...int) TaskQuerySet
- func (qs TaskQuerySet) LimitRandomDelayLt(limitRandomDelay int) TaskQuerySet
- func (qs TaskQuerySet) LimitRandomDelayLte(limitRandomDelay int) TaskQuerySet
- func (qs TaskQuerySet) LimitRandomDelayNe(limitRandomDelay int) TaskQuerySet
- func (qs TaskQuerySet) LimitRandomDelayNotIn(limitRandomDelay ...int) TaskQuerySet
- func (qs TaskQuerySet) Offset(offset int) TaskQuerySet
- func (qs TaskQuerySet) One(ret *Task) error
- func (qs TaskQuerySet) OptAllowedDomainsEq(optAllowedDomains string) TaskQuerySet
- func (qs TaskQuerySet) OptAllowedDomainsIn(optAllowedDomains ...string) TaskQuerySet
- func (qs TaskQuerySet) OptAllowedDomainsNe(optAllowedDomains string) TaskQuerySet
- func (qs TaskQuerySet) OptAllowedDomainsNotIn(optAllowedDomains ...string) TaskQuerySet
- func (qs TaskQuerySet) OptMaxBodySizeEq(optMaxBodySize int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxBodySizeGt(optMaxBodySize int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxBodySizeGte(optMaxBodySize int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxBodySizeIn(optMaxBodySize ...int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxBodySizeLt(optMaxBodySize int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxBodySizeLte(optMaxBodySize int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxBodySizeNe(optMaxBodySize int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxBodySizeNotIn(optMaxBodySize ...int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxDepthEq(optMaxDepth int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxDepthGt(optMaxDepth int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxDepthGte(optMaxDepth int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxDepthIn(optMaxDepth ...int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxDepthLt(optMaxDepth int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxDepthLte(optMaxDepth int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxDepthNe(optMaxDepth int) TaskQuerySet
- func (qs TaskQuerySet) OptMaxDepthNotIn(optMaxDepth ...int) TaskQuerySet
- func (qs TaskQuerySet) OptRequestTimeoutEq(optRequestTimeout int) TaskQuerySet
- func (qs TaskQuerySet) OptRequestTimeoutGt(optRequestTimeout int) TaskQuerySet
- func (qs TaskQuerySet) OptRequestTimeoutGte(optRequestTimeout int) TaskQuerySet
- func (qs TaskQuerySet) OptRequestTimeoutIn(optRequestTimeout ...int) TaskQuerySet
- func (qs TaskQuerySet) OptRequestTimeoutLt(optRequestTimeout int) TaskQuerySet
- func (qs TaskQuerySet) OptRequestTimeoutLte(optRequestTimeout int) TaskQuerySet
- func (qs TaskQuerySet) OptRequestTimeoutNe(optRequestTimeout int) TaskQuerySet
- func (qs TaskQuerySet) OptRequestTimeoutNotIn(optRequestTimeout ...int) TaskQuerySet
- func (qs TaskQuerySet) OptURLFiltersEq(optURLFilters string) TaskQuerySet
- func (qs TaskQuerySet) OptURLFiltersIn(optURLFilters ...string) TaskQuerySet
- func (qs TaskQuerySet) OptURLFiltersNe(optURLFilters string) TaskQuerySet
- func (qs TaskQuerySet) OptURLFiltersNotIn(optURLFilters ...string) TaskQuerySet
- func (qs TaskQuerySet) OptUserAgentEq(optUserAgent string) TaskQuerySet
- func (qs TaskQuerySet) OptUserAgentIn(optUserAgent ...string) TaskQuerySet
- func (qs TaskQuerySet) OptUserAgentNe(optUserAgent string) TaskQuerySet
- func (qs TaskQuerySet) OptUserAgentNotIn(optUserAgent ...string) TaskQuerySet
- func (qs TaskQuerySet) OrderAscByCounts() TaskQuerySet
- func (qs TaskQuerySet) OrderAscByCreatedAt() TaskQuerySet
- func (qs TaskQuerySet) OrderAscByID() TaskQuerySet
- func (qs TaskQuerySet) OrderAscByLimitDelay() TaskQuerySet
- func (qs TaskQuerySet) OrderAscByLimitParallelism() TaskQuerySet
- func (qs TaskQuerySet) OrderAscByLimitRandomDelay() TaskQuerySet
- func (qs TaskQuerySet) OrderAscByOptMaxBodySize() TaskQuerySet
- func (qs TaskQuerySet) OrderAscByOptMaxDepth() TaskQuerySet
- func (qs TaskQuerySet) OrderAscByOptRequestTimeout() TaskQuerySet
- func (qs TaskQuerySet) OrderAscByOutputExportDBID() TaskQuerySet
- func (qs TaskQuerySet) OrderAscByStatus() TaskQuerySet
- func (qs TaskQuerySet) OrderAscByUpdatedAt() TaskQuerySet
- func (qs TaskQuerySet) OrderDescByCounts() TaskQuerySet
- func (qs TaskQuerySet) OrderDescByCreatedAt() TaskQuerySet
- func (qs TaskQuerySet) OrderDescByID() TaskQuerySet
- func (qs TaskQuerySet) OrderDescByLimitDelay() TaskQuerySet
- func (qs TaskQuerySet) OrderDescByLimitParallelism() TaskQuerySet
- func (qs TaskQuerySet) OrderDescByLimitRandomDelay() TaskQuerySet
- func (qs TaskQuerySet) OrderDescByOptMaxBodySize() TaskQuerySet
- func (qs TaskQuerySet) OrderDescByOptMaxDepth() TaskQuerySet
- func (qs TaskQuerySet) OrderDescByOptRequestTimeout() TaskQuerySet
- func (qs TaskQuerySet) OrderDescByOutputExportDBID() TaskQuerySet
- func (qs TaskQuerySet) OrderDescByStatus() TaskQuerySet
- func (qs TaskQuerySet) OrderDescByUpdatedAt() TaskQuerySet
- func (qs TaskQuerySet) OutputExportDBIDEq(outputExportDBID uint64) TaskQuerySet
- func (qs TaskQuerySet) OutputExportDBIDGt(outputExportDBID uint64) TaskQuerySet
- func (qs TaskQuerySet) OutputExportDBIDGte(outputExportDBID uint64) TaskQuerySet
- func (qs TaskQuerySet) OutputExportDBIDIn(outputExportDBID ...uint64) TaskQuerySet
- func (qs TaskQuerySet) OutputExportDBIDLt(outputExportDBID uint64) TaskQuerySet
- func (qs TaskQuerySet) OutputExportDBIDLte(outputExportDBID uint64) TaskQuerySet
- func (qs TaskQuerySet) OutputExportDBIDNe(outputExportDBID uint64) TaskQuerySet
- func (qs TaskQuerySet) OutputExportDBIDNotIn(outputExportDBID ...uint64) TaskQuerySet
- func (qs TaskQuerySet) OutputTypeEq(outputType string) TaskQuerySet
- func (qs TaskQuerySet) OutputTypeIn(outputType ...string) TaskQuerySet
- func (qs TaskQuerySet) OutputTypeNe(outputType string) TaskQuerySet
- func (qs TaskQuerySet) OutputTypeNotIn(outputType ...string) TaskQuerySet
- func (qs TaskQuerySet) ProxyURLsEq(proxyURLs string) TaskQuerySet
- func (qs TaskQuerySet) ProxyURLsIn(proxyURLs ...string) TaskQuerySet
- func (qs TaskQuerySet) ProxyURLsNe(proxyURLs string) TaskQuerySet
- func (qs TaskQuerySet) ProxyURLsNotIn(proxyURLs ...string) TaskQuerySet
- func (qs TaskQuerySet) StatusEq(status common.TaskStatus) TaskQuerySet
- func (qs TaskQuerySet) StatusGt(status common.TaskStatus) TaskQuerySet
- func (qs TaskQuerySet) StatusGte(status common.TaskStatus) TaskQuerySet
- func (qs TaskQuerySet) StatusIn(status ...common.TaskStatus) TaskQuerySet
- func (qs TaskQuerySet) StatusLt(status common.TaskStatus) TaskQuerySet
- func (qs TaskQuerySet) StatusLte(status common.TaskStatus) TaskQuerySet
- func (qs TaskQuerySet) StatusNe(status common.TaskStatus) TaskQuerySet
- func (qs TaskQuerySet) StatusNotIn(status ...common.TaskStatus) TaskQuerySet
- func (qs TaskQuerySet) TaskDescEq(taskDesc string) TaskQuerySet
- func (qs TaskQuerySet) TaskDescIn(taskDesc ...string) TaskQuerySet
- func (qs TaskQuerySet) TaskDescNe(taskDesc string) TaskQuerySet
- func (qs TaskQuerySet) TaskDescNotIn(taskDesc ...string) TaskQuerySet
- func (qs TaskQuerySet) TaskNameEq(taskName string) TaskQuerySet
- func (qs TaskQuerySet) TaskNameIn(taskName ...string) TaskQuerySet
- func (qs TaskQuerySet) TaskNameNe(taskName string) TaskQuerySet
- func (qs TaskQuerySet) TaskNameNotIn(taskName ...string) TaskQuerySet
- func (qs TaskQuerySet) TaskRuleNameEq(taskRuleName string) TaskQuerySet
- func (qs TaskQuerySet) TaskRuleNameIn(taskRuleName ...string) TaskQuerySet
- func (qs TaskQuerySet) TaskRuleNameNe(taskRuleName string) TaskQuerySet
- func (qs TaskQuerySet) TaskRuleNameNotIn(taskRuleName ...string) TaskQuerySet
- func (qs TaskQuerySet) UpdatedAtEq(updatedAt time.Time) TaskQuerySet
- func (qs TaskQuerySet) UpdatedAtGt(updatedAt time.Time) TaskQuerySet
- func (qs TaskQuerySet) UpdatedAtGte(updatedAt time.Time) TaskQuerySet
- func (qs TaskQuerySet) UpdatedAtLt(updatedAt time.Time) TaskQuerySet
- func (qs TaskQuerySet) UpdatedAtLte(updatedAt time.Time) TaskQuerySet
- func (qs TaskQuerySet) UpdatedAtNe(updatedAt time.Time) TaskQuerySet
- type TaskUpdater
- func (u TaskUpdater) SetAutoMigrate(autoMigrate bool) TaskUpdater
- func (u TaskUpdater) SetCounts(counts int) TaskUpdater
- func (u TaskUpdater) SetCreatedAt(createdAt time.Time) TaskUpdater
- func (u TaskUpdater) SetCronSpec(cronSpec string) TaskUpdater
- func (u TaskUpdater) SetID(ID uint64) TaskUpdater
- func (u TaskUpdater) SetLimitDelay(limitDelay int) TaskUpdater
- func (u TaskUpdater) SetLimitDomainGlob(limitDomainGlob string) TaskUpdater
- func (u TaskUpdater) SetLimitDomainRegexp(limitDomainRegexp string) TaskUpdater
- func (u TaskUpdater) SetLimitEnable(limitEnable bool) TaskUpdater
- func (u TaskUpdater) SetLimitParallelism(limitParallelism int) TaskUpdater
- func (u TaskUpdater) SetLimitRandomDelay(limitRandomDelay int) TaskUpdater
- func (u TaskUpdater) SetOptAllowedDomains(optAllowedDomains string) TaskUpdater
- func (u TaskUpdater) SetOptMaxBodySize(optMaxBodySize int) TaskUpdater
- func (u TaskUpdater) SetOptMaxDepth(optMaxDepth int) TaskUpdater
- func (u TaskUpdater) SetOptRequestTimeout(optRequestTimeout int) TaskUpdater
- func (u TaskUpdater) SetOptURLFilters(optURLFilters string) TaskUpdater
- func (u TaskUpdater) SetOptUserAgent(optUserAgent string) TaskUpdater
- func (u TaskUpdater) SetOutputExportDBID(outputExportDBID uint64) TaskUpdater
- func (u TaskUpdater) SetOutputType(outputType string) TaskUpdater
- func (u TaskUpdater) SetProxyURLs(proxyURLs string) TaskUpdater
- func (u TaskUpdater) SetStatus(status common.TaskStatus) TaskUpdater
- func (u TaskUpdater) SetTaskDesc(taskDesc string) TaskUpdater
- func (u TaskUpdater) SetTaskName(taskName string) TaskUpdater
- func (u TaskUpdater) SetTaskRuleName(taskRuleName string) TaskUpdater
- func (u TaskUpdater) SetUpdatedAt(updatedAt time.Time) TaskUpdater
- func (u TaskUpdater) Update() error
- func (u TaskUpdater) UpdateNum() (int64, error)
- type User
- type UserDBSchemaField
- type UserQuerySet
- func (qs UserQuerySet) All(ret *[]User) error
- func (qs UserQuerySet) AvatarEq(avatar string) UserQuerySet
- func (qs UserQuerySet) AvatarIn(avatar ...string) UserQuerySet
- func (qs UserQuerySet) AvatarNe(avatar string) UserQuerySet
- func (qs UserQuerySet) AvatarNotIn(avatar ...string) UserQuerySet
- func (qs UserQuerySet) Count() (int, error)
- func (qs UserQuerySet) CreatedAtEq(createdAt time.Time) UserQuerySet
- func (qs UserQuerySet) CreatedAtGt(createdAt time.Time) UserQuerySet
- func (qs UserQuerySet) CreatedAtGte(createdAt time.Time) UserQuerySet
- func (qs UserQuerySet) CreatedAtLt(createdAt time.Time) UserQuerySet
- func (qs UserQuerySet) CreatedAtLte(createdAt time.Time) UserQuerySet
- func (qs UserQuerySet) CreatedAtNe(createdAt time.Time) UserQuerySet
- func (qs UserQuerySet) Delete() error
- func (qs UserQuerySet) DeleteNum() (int64, error)
- func (qs UserQuerySet) DeleteNumUnscoped() (int64, error)
- func (qs UserQuerySet) EmailEq(email string) UserQuerySet
- func (qs UserQuerySet) EmailIn(email ...string) UserQuerySet
- func (qs UserQuerySet) EmailNe(email string) UserQuerySet
- func (qs UserQuerySet) EmailNotIn(email ...string) UserQuerySet
- func (qs UserQuerySet) GetUpdater() UserUpdater
- func (qs UserQuerySet) IDEq(ID uint64) UserQuerySet
- func (qs UserQuerySet) IDGt(ID uint64) UserQuerySet
- func (qs UserQuerySet) IDGte(ID uint64) UserQuerySet
- func (qs UserQuerySet) IDIn(ID ...uint64) UserQuerySet
- func (qs UserQuerySet) IDLt(ID uint64) UserQuerySet
- func (qs UserQuerySet) IDLte(ID uint64) UserQuerySet
- func (qs UserQuerySet) IDNe(ID uint64) UserQuerySet
- func (qs UserQuerySet) IDNotIn(ID ...uint64) UserQuerySet
- func (qs UserQuerySet) IntroductionEq(introduction string) UserQuerySet
- func (qs UserQuerySet) IntroductionIn(introduction ...string) UserQuerySet
- func (qs UserQuerySet) IntroductionNe(introduction string) UserQuerySet
- func (qs UserQuerySet) IntroductionNotIn(introduction ...string) UserQuerySet
- func (qs UserQuerySet) Limit(limit int) UserQuerySet
- func (qs UserQuerySet) Offset(offset int) UserQuerySet
- func (qs UserQuerySet) One(ret *User) error
- func (qs UserQuerySet) OrderAscByCreatedAt() UserQuerySet
- func (qs UserQuerySet) OrderAscByID() UserQuerySet
- func (qs UserQuerySet) OrderAscByUpdatedAt() UserQuerySet
- func (qs UserQuerySet) OrderDescByCreatedAt() UserQuerySet
- func (qs UserQuerySet) OrderDescByID() UserQuerySet
- func (qs UserQuerySet) OrderDescByUpdatedAt() UserQuerySet
- func (qs UserQuerySet) PasswordEq(password string) UserQuerySet
- func (qs UserQuerySet) PasswordIn(password ...string) UserQuerySet
- func (qs UserQuerySet) PasswordNe(password string) UserQuerySet
- func (qs UserQuerySet) PasswordNotIn(password ...string) UserQuerySet
- func (qs UserQuerySet) RolesEq(roles string) UserQuerySet
- func (qs UserQuerySet) RolesIn(roles ...string) UserQuerySet
- func (qs UserQuerySet) RolesNe(roles string) UserQuerySet
- func (qs UserQuerySet) RolesNotIn(roles ...string) UserQuerySet
- func (qs UserQuerySet) UpdatedAtEq(updatedAt time.Time) UserQuerySet
- func (qs UserQuerySet) UpdatedAtGt(updatedAt time.Time) UserQuerySet
- func (qs UserQuerySet) UpdatedAtGte(updatedAt time.Time) UserQuerySet
- func (qs UserQuerySet) UpdatedAtLt(updatedAt time.Time) UserQuerySet
- func (qs UserQuerySet) UpdatedAtLte(updatedAt time.Time) UserQuerySet
- func (qs UserQuerySet) UpdatedAtNe(updatedAt time.Time) UserQuerySet
- func (qs UserQuerySet) UserNameEq(userName string) UserQuerySet
- func (qs UserQuerySet) UserNameIn(userName ...string) UserQuerySet
- func (qs UserQuerySet) UserNameNe(userName string) UserQuerySet
- func (qs UserQuerySet) UserNameNotIn(userName ...string) UserQuerySet
- type UserUpdater
- func (u UserUpdater) SetAvatar(avatar string) UserUpdater
- func (u UserUpdater) SetCreatedAt(createdAt time.Time) UserUpdater
- func (u UserUpdater) SetEmail(email string) UserUpdater
- func (u UserUpdater) SetID(ID uint64) UserUpdater
- func (u UserUpdater) SetIntroduction(introduction string) UserUpdater
- func (u UserUpdater) SetPassword(password string) UserUpdater
- func (u UserUpdater) SetRoles(roles string) UserUpdater
- func (u UserUpdater) SetUpdatedAt(updatedAt time.Time) UserUpdater
- func (u UserUpdater) SetUserName(userName string) UserUpdater
- func (u UserUpdater) Update() error
- func (u UserUpdater) UpdateNum() (int64, error)
Constants ¶
This section is empty.
Variables ¶
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
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
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 InitAdminUserIfNeeded ¶
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
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 ¶
func (qs ExportDBQuerySet) IDEq(ID uint64) ExportDBQuerySet
IDEq is an autogenerated method nolint: dupl
func (ExportDBQuerySet) IDGt ¶
func (qs ExportDBQuerySet) IDGt(ID uint64) ExportDBQuerySet
IDGt is an autogenerated method nolint: dupl
func (ExportDBQuerySet) IDGte ¶
func (qs ExportDBQuerySet) IDGte(ID uint64) ExportDBQuerySet
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 ¶
func (qs ExportDBQuerySet) IDLt(ID uint64) ExportDBQuerySet
IDLt is an autogenerated method nolint: dupl
func (ExportDBQuerySet) IDLte ¶
func (qs ExportDBQuerySet) IDLte(ID uint64) ExportDBQuerySet
IDLte is an autogenerated method nolint: dupl
func (ExportDBQuerySet) IDNe ¶
func (qs ExportDBQuerySet) IDNe(ID uint64) ExportDBQuerySet
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 ¶
func (u ExportDBUpdater) SetID(ID uint64) ExportDBUpdater
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
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
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