task

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the task type in the database.
	Label = "task"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldTaskGroup holds the string denoting the task_group field in the database.
	FieldTaskGroup = "task_group"
	// FieldCronExpression holds the string denoting the cron_expression field in the database.
	FieldCronExpression = "cron_expression"
	// FieldPattern holds the string denoting the pattern field in the database.
	FieldPattern = "pattern"
	// FieldPayload holds the string denoting the payload field in the database.
	FieldPayload = "payload"
	// EdgeTaskLogs holds the string denoting the task_logs edge name in mutations.
	EdgeTaskLogs = "task_logs"
	// Table holds the table name of the task in the database.
	Table = "sys_tasks"
	// TaskLogsTable is the table that holds the task_logs relation/edge.
	TaskLogsTable = "sys_task_logs"
	// TaskLogsInverseTable is the table name for the TaskLog entity.
	// It exists in this package in order to avoid circular dependency with the "tasklog" package.
	TaskLogsInverseTable = "sys_task_logs"
	// TaskLogsColumn is the table column denoting the task_logs relation/edge.
	TaskLogsColumn = "task_task_logs"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus uint8
)

Columns holds all SQL columns for task fields.

Functions

func And

func And(predicates ...predicate.Task) predicate.Task

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Task

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Task

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Task

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Task

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Task

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Task

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Task

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Task

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Task

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CronExpression

func CronExpression(v string) predicate.Task

CronExpression applies equality check predicate on the "cron_expression" field. It's identical to CronExpressionEQ.

func CronExpressionContains

func CronExpressionContains(v string) predicate.Task

CronExpressionContains applies the Contains predicate on the "cron_expression" field.

func CronExpressionContainsFold

func CronExpressionContainsFold(v string) predicate.Task

CronExpressionContainsFold applies the ContainsFold predicate on the "cron_expression" field.

func CronExpressionEQ

func CronExpressionEQ(v string) predicate.Task

CronExpressionEQ applies the EQ predicate on the "cron_expression" field.

func CronExpressionEqualFold

func CronExpressionEqualFold(v string) predicate.Task

CronExpressionEqualFold applies the EqualFold predicate on the "cron_expression" field.

func CronExpressionGT

func CronExpressionGT(v string) predicate.Task

CronExpressionGT applies the GT predicate on the "cron_expression" field.

func CronExpressionGTE

func CronExpressionGTE(v string) predicate.Task

CronExpressionGTE applies the GTE predicate on the "cron_expression" field.

func CronExpressionHasPrefix

func CronExpressionHasPrefix(v string) predicate.Task

CronExpressionHasPrefix applies the HasPrefix predicate on the "cron_expression" field.

func CronExpressionHasSuffix

func CronExpressionHasSuffix(v string) predicate.Task

CronExpressionHasSuffix applies the HasSuffix predicate on the "cron_expression" field.

func CronExpressionIn

func CronExpressionIn(vs ...string) predicate.Task

CronExpressionIn applies the In predicate on the "cron_expression" field.

func CronExpressionLT

func CronExpressionLT(v string) predicate.Task

CronExpressionLT applies the LT predicate on the "cron_expression" field.

func CronExpressionLTE

func CronExpressionLTE(v string) predicate.Task

CronExpressionLTE applies the LTE predicate on the "cron_expression" field.

func CronExpressionNEQ

func CronExpressionNEQ(v string) predicate.Task

CronExpressionNEQ applies the NEQ predicate on the "cron_expression" field.

func CronExpressionNotIn

func CronExpressionNotIn(vs ...string) predicate.Task

CronExpressionNotIn applies the NotIn predicate on the "cron_expression" field.

func HasTaskLogs

func HasTaskLogs() predicate.Task

HasTaskLogs applies the HasEdge predicate on the "task_logs" edge.

func HasTaskLogsWith

func HasTaskLogsWith(preds ...predicate.TaskLog) predicate.Task

HasTaskLogsWith applies the HasEdge predicate on the "task_logs" edge with a given conditions (other predicates).

func ID

func ID(id uint64) predicate.Task

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Task

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Task

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Task

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.Task

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Task

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Task

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Task

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.Task

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Task

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Task

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Task

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Task

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Task

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Task

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Task

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Task

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Task

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Task

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Task

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Task

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Task

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Task

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Task) predicate.Task

Or groups predicates with the OR operator between them.

func Pattern

func Pattern(v string) predicate.Task

Pattern applies equality check predicate on the "pattern" field. It's identical to PatternEQ.

func PatternContains

func PatternContains(v string) predicate.Task

PatternContains applies the Contains predicate on the "pattern" field.

func PatternContainsFold

func PatternContainsFold(v string) predicate.Task

PatternContainsFold applies the ContainsFold predicate on the "pattern" field.

func PatternEQ

func PatternEQ(v string) predicate.Task

PatternEQ applies the EQ predicate on the "pattern" field.

func PatternEqualFold

func PatternEqualFold(v string) predicate.Task

PatternEqualFold applies the EqualFold predicate on the "pattern" field.

func PatternGT

func PatternGT(v string) predicate.Task

PatternGT applies the GT predicate on the "pattern" field.

func PatternGTE

func PatternGTE(v string) predicate.Task

PatternGTE applies the GTE predicate on the "pattern" field.

func PatternHasPrefix

func PatternHasPrefix(v string) predicate.Task

PatternHasPrefix applies the HasPrefix predicate on the "pattern" field.

func PatternHasSuffix

func PatternHasSuffix(v string) predicate.Task

PatternHasSuffix applies the HasSuffix predicate on the "pattern" field.

func PatternIn

func PatternIn(vs ...string) predicate.Task

PatternIn applies the In predicate on the "pattern" field.

func PatternLT

func PatternLT(v string) predicate.Task

PatternLT applies the LT predicate on the "pattern" field.

func PatternLTE

func PatternLTE(v string) predicate.Task

PatternLTE applies the LTE predicate on the "pattern" field.

func PatternNEQ

func PatternNEQ(v string) predicate.Task

PatternNEQ applies the NEQ predicate on the "pattern" field.

func PatternNotIn

func PatternNotIn(vs ...string) predicate.Task

PatternNotIn applies the NotIn predicate on the "pattern" field.

func Payload

func Payload(v string) predicate.Task

Payload applies equality check predicate on the "payload" field. It's identical to PayloadEQ.

func PayloadContains

func PayloadContains(v string) predicate.Task

PayloadContains applies the Contains predicate on the "payload" field.

func PayloadContainsFold

func PayloadContainsFold(v string) predicate.Task

PayloadContainsFold applies the ContainsFold predicate on the "payload" field.

func PayloadEQ

func PayloadEQ(v string) predicate.Task

PayloadEQ applies the EQ predicate on the "payload" field.

func PayloadEqualFold

func PayloadEqualFold(v string) predicate.Task

PayloadEqualFold applies the EqualFold predicate on the "payload" field.

func PayloadGT

func PayloadGT(v string) predicate.Task

PayloadGT applies the GT predicate on the "payload" field.

func PayloadGTE

func PayloadGTE(v string) predicate.Task

PayloadGTE applies the GTE predicate on the "payload" field.

func PayloadHasPrefix

func PayloadHasPrefix(v string) predicate.Task

PayloadHasPrefix applies the HasPrefix predicate on the "payload" field.

func PayloadHasSuffix

func PayloadHasSuffix(v string) predicate.Task

PayloadHasSuffix applies the HasSuffix predicate on the "payload" field.

func PayloadIn

func PayloadIn(vs ...string) predicate.Task

PayloadIn applies the In predicate on the "payload" field.

func PayloadLT

func PayloadLT(v string) predicate.Task

PayloadLT applies the LT predicate on the "payload" field.

func PayloadLTE

func PayloadLTE(v string) predicate.Task

PayloadLTE applies the LTE predicate on the "payload" field.

func PayloadNEQ

func PayloadNEQ(v string) predicate.Task

PayloadNEQ applies the NEQ predicate on the "payload" field.

func PayloadNotIn

func PayloadNotIn(vs ...string) predicate.Task

PayloadNotIn applies the NotIn predicate on the "payload" field.

func Status

func Status(v uint8) predicate.Task

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v uint8) predicate.Task

StatusEQ applies the EQ predicate on the "status" field.

func StatusGT

func StatusGT(v uint8) predicate.Task

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v uint8) predicate.Task

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...uint8) predicate.Task

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.Task

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT

func StatusLT(v uint8) predicate.Task

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v uint8) predicate.Task

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v uint8) predicate.Task

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...uint8) predicate.Task

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.Task

StatusNotNil applies the NotNil predicate on the "status" field.

func TaskGroup

func TaskGroup(v string) predicate.Task

TaskGroup applies equality check predicate on the "task_group" field. It's identical to TaskGroupEQ.

func TaskGroupContains

func TaskGroupContains(v string) predicate.Task

TaskGroupContains applies the Contains predicate on the "task_group" field.

func TaskGroupContainsFold

func TaskGroupContainsFold(v string) predicate.Task

TaskGroupContainsFold applies the ContainsFold predicate on the "task_group" field.

func TaskGroupEQ

func TaskGroupEQ(v string) predicate.Task

TaskGroupEQ applies the EQ predicate on the "task_group" field.

func TaskGroupEqualFold

func TaskGroupEqualFold(v string) predicate.Task

TaskGroupEqualFold applies the EqualFold predicate on the "task_group" field.

func TaskGroupGT

func TaskGroupGT(v string) predicate.Task

TaskGroupGT applies the GT predicate on the "task_group" field.

func TaskGroupGTE

func TaskGroupGTE(v string) predicate.Task

TaskGroupGTE applies the GTE predicate on the "task_group" field.

func TaskGroupHasPrefix

func TaskGroupHasPrefix(v string) predicate.Task

TaskGroupHasPrefix applies the HasPrefix predicate on the "task_group" field.

func TaskGroupHasSuffix

func TaskGroupHasSuffix(v string) predicate.Task

TaskGroupHasSuffix applies the HasSuffix predicate on the "task_group" field.

func TaskGroupIn

func TaskGroupIn(vs ...string) predicate.Task

TaskGroupIn applies the In predicate on the "task_group" field.

func TaskGroupLT

func TaskGroupLT(v string) predicate.Task

TaskGroupLT applies the LT predicate on the "task_group" field.

func TaskGroupLTE

func TaskGroupLTE(v string) predicate.Task

TaskGroupLTE applies the LTE predicate on the "task_group" field.

func TaskGroupNEQ

func TaskGroupNEQ(v string) predicate.Task

TaskGroupNEQ applies the NEQ predicate on the "task_group" field.

func TaskGroupNotIn

func TaskGroupNotIn(vs ...string) predicate.Task

TaskGroupNotIn applies the NotIn predicate on the "task_group" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Task

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Task

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Task

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Task

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Task

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Task

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Task

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Task

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Task

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Task queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCronExpression

func ByCronExpression(opts ...sql.OrderTermOption) OrderOption

ByCronExpression orders the results by the cron_expression field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByPattern

func ByPattern(opts ...sql.OrderTermOption) OrderOption

ByPattern orders the results by the pattern field.

func ByPayload

func ByPayload(opts ...sql.OrderTermOption) OrderOption

ByPayload orders the results by the payload field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByTaskGroup

func ByTaskGroup(opts ...sql.OrderTermOption) OrderOption

ByTaskGroup orders the results by the task_group field.

func ByTaskLogs

func ByTaskLogs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTaskLogs orders the results by task_logs terms.

func ByTaskLogsCount

func ByTaskLogsCount(opts ...sql.OrderTermOption) OrderOption

ByTaskLogsCount orders the results by task_logs count.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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