Versions in this module Expand all Collapse all v1 v1.0.3 Mar 31, 2023 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeTask + const TypeTaskLog + var DefaultTaskLogOrder = Desc(tasklog.FieldID) + var DefaultTaskOrder = Desc(task.FieldID) + func IsConstraintError(err error) bool + func IsNotFound(err error) bool + func IsNotLoaded(err error) bool + func IsNotSingular(err error) bool + func IsValidationError(err error) bool + func MaskNotFound(err error) error + func NewContext(parent context.Context, c *Client) context.Context + func NewTxContext(parent context.Context, tx *Tx) context.Context + type AggregateFunc func(*sql.Selector) string + func As(fn AggregateFunc, end string) AggregateFunc + func Count() AggregateFunc + func Max(field string) AggregateFunc + func Mean(field string) AggregateFunc + func Min(field string) AggregateFunc + func Sum(field string) AggregateFunc + type Client struct + Schema *migrate.Schema + Task *TaskClient + TaskLog *TaskLogClient + func FromContext(ctx context.Context) *Client + func NewClient(opts ...Option) *Client + func Open(driverName, dataSourceName string, options ...Option) (*Client, error) + func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) + func (c *Client) Close() error + func (c *Client) Debug() *Client + func (c *Client) Intercept(interceptors ...Interceptor) + func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error) + func (c *Client) Tx(ctx context.Context) (*Tx, error) + func (c *Client) Use(hooks ...Hook) + type CommitFunc func(context.Context, *Tx) error + func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error + type CommitHook func(Committer) Committer + type Committer interface + Commit func(context.Context, *Tx) error + type ConstraintError struct + func (e *ConstraintError) Unwrap() error + func (e ConstraintError) Error() string + type Hook = ent.Hook + type InterceptFunc = ent.InterceptFunc + type Interceptor = ent.Interceptor + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type NotFoundError struct + func (e *NotFoundError) Error() string + type NotLoadedError struct + func (e *NotLoadedError) Error() string + type NotSingularError struct + func (e *NotSingularError) Error() string + type Op = ent.Op + type Option func(*config) + func Debug() Option + func Driver(driver dialect.Driver) Option + func Log(fn func(...any)) Option + type OrderDirection string + const OrderDirectionAsc + const OrderDirectionDesc + func (o OrderDirection) String() string + func (o OrderDirection) Validate() error + type OrderFunc func(*sql.Selector) + func Asc(fields ...string) OrderFunc + func Desc(fields ...string) OrderFunc + type PageDetails struct + Page uint64 + Size uint64 + Total uint64 + type Policy = ent.Policy + type Querier = ent.Querier + type QuerierFunc = ent.QuerierFunc + type Query = ent.Query + type QueryContext = ent.QueryContext + type RollbackFunc func(context.Context, *Tx) error + func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error + type RollbackHook func(Rollbacker) Rollbacker + type Rollbacker interface + Rollback func(context.Context, *Tx) error + type Task struct + CreatedAt time.Time + CronExpression string + Edges TaskEdges + ID uint64 + Name string + Pattern string + Payload string + Status uint8 + TaskGroup string + UpdatedAt time.Time + func (t *Task) QueryTaskLogs() *TaskLogQuery + func (t *Task) String() string + func (t *Task) Unwrap() *Task + func (t *Task) Update() *TaskUpdateOne + type TaskClient struct + func NewTaskClient(c config) *TaskClient + func (c *TaskClient) Create() *TaskCreate + func (c *TaskClient) CreateBulk(builders ...*TaskCreate) *TaskCreateBulk + func (c *TaskClient) Delete() *TaskDelete + func (c *TaskClient) DeleteOne(t *Task) *TaskDeleteOne + func (c *TaskClient) DeleteOneID(id uint64) *TaskDeleteOne + func (c *TaskClient) Get(ctx context.Context, id uint64) (*Task, error) + func (c *TaskClient) GetX(ctx context.Context, id uint64) *Task + func (c *TaskClient) Hooks() []Hook + func (c *TaskClient) Intercept(interceptors ...Interceptor) + func (c *TaskClient) Interceptors() []Interceptor + func (c *TaskClient) Query() *TaskQuery + func (c *TaskClient) QueryTaskLogs(t *Task) *TaskLogQuery + func (c *TaskClient) Update() *TaskUpdate + func (c *TaskClient) UpdateOne(t *Task) *TaskUpdateOne + func (c *TaskClient) UpdateOneID(id uint64) *TaskUpdateOne + func (c *TaskClient) Use(hooks ...Hook) + type TaskCreate struct + func (tc *TaskCreate) AddTaskLogIDs(ids ...uint64) *TaskCreate + func (tc *TaskCreate) AddTaskLogs(t ...*TaskLog) *TaskCreate + func (tc *TaskCreate) Exec(ctx context.Context) error + func (tc *TaskCreate) ExecX(ctx context.Context) + func (tc *TaskCreate) Mutation() *TaskMutation + func (tc *TaskCreate) Save(ctx context.Context) (*Task, error) + func (tc *TaskCreate) SaveX(ctx context.Context) *Task + func (tc *TaskCreate) SetCreatedAt(t time.Time) *TaskCreate + func (tc *TaskCreate) SetCronExpression(s string) *TaskCreate + func (tc *TaskCreate) SetID(u uint64) *TaskCreate + func (tc *TaskCreate) SetName(s string) *TaskCreate + func (tc *TaskCreate) SetNillableCreatedAt(t *time.Time) *TaskCreate + func (tc *TaskCreate) SetNillableStatus(u *uint8) *TaskCreate + func (tc *TaskCreate) SetNillableUpdatedAt(t *time.Time) *TaskCreate + func (tc *TaskCreate) SetPattern(s string) *TaskCreate + func (tc *TaskCreate) SetPayload(s string) *TaskCreate + func (tc *TaskCreate) SetStatus(u uint8) *TaskCreate + func (tc *TaskCreate) SetTaskGroup(s string) *TaskCreate + func (tc *TaskCreate) SetUpdatedAt(t time.Time) *TaskCreate + type TaskCreateBulk struct + func (tcb *TaskCreateBulk) Exec(ctx context.Context) error + func (tcb *TaskCreateBulk) ExecX(ctx context.Context) + func (tcb *TaskCreateBulk) Save(ctx context.Context) ([]*Task, error) + func (tcb *TaskCreateBulk) SaveX(ctx context.Context) []*Task + type TaskDelete struct + func (td *TaskDelete) Exec(ctx context.Context) (int, error) + func (td *TaskDelete) ExecX(ctx context.Context) int + func (td *TaskDelete) Where(ps ...predicate.Task) *TaskDelete + type TaskDeleteOne struct + func (tdo *TaskDeleteOne) Exec(ctx context.Context) error + func (tdo *TaskDeleteOne) ExecX(ctx context.Context) + func (tdo *TaskDeleteOne) Where(ps ...predicate.Task) *TaskDeleteOne + type TaskEdges struct + TaskLogs []*TaskLog + func (e TaskEdges) TaskLogsOrErr() ([]*TaskLog, error) + type TaskGroupBy struct + func (s *TaskGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *TaskGroupBy) BoolX(ctx context.Context) bool + func (s *TaskGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *TaskGroupBy) BoolsX(ctx context.Context) []bool + func (s *TaskGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *TaskGroupBy) Float64X(ctx context.Context) float64 + func (s *TaskGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *TaskGroupBy) Float64sX(ctx context.Context) []float64 + func (s *TaskGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *TaskGroupBy) IntX(ctx context.Context) int + func (s *TaskGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *TaskGroupBy) IntsX(ctx context.Context) []int + func (s *TaskGroupBy) ScanX(ctx context.Context, v any) + func (s *TaskGroupBy) String(ctx context.Context) (_ string, err error) + func (s *TaskGroupBy) StringX(ctx context.Context) string + func (s *TaskGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *TaskGroupBy) StringsX(ctx context.Context) []string + func (tgb *TaskGroupBy) Aggregate(fns ...AggregateFunc) *TaskGroupBy + func (tgb *TaskGroupBy) Scan(ctx context.Context, v any) error + type TaskLog struct + Edges TaskLogEdges + FinishedAt time.Time + ID uint64 + Result uint8 + StartedAt time.Time + func (tl *TaskLog) QueryTasks() *TaskQuery + func (tl *TaskLog) String() string + func (tl *TaskLog) Unwrap() *TaskLog + func (tl *TaskLog) Update() *TaskLogUpdateOne + type TaskLogClient struct + func NewTaskLogClient(c config) *TaskLogClient + func (c *TaskLogClient) Create() *TaskLogCreate + func (c *TaskLogClient) CreateBulk(builders ...*TaskLogCreate) *TaskLogCreateBulk + func (c *TaskLogClient) Delete() *TaskLogDelete + func (c *TaskLogClient) DeleteOne(tl *TaskLog) *TaskLogDeleteOne + func (c *TaskLogClient) DeleteOneID(id uint64) *TaskLogDeleteOne + func (c *TaskLogClient) Get(ctx context.Context, id uint64) (*TaskLog, error) + func (c *TaskLogClient) GetX(ctx context.Context, id uint64) *TaskLog + func (c *TaskLogClient) Hooks() []Hook + func (c *TaskLogClient) Intercept(interceptors ...Interceptor) + func (c *TaskLogClient) Interceptors() []Interceptor + func (c *TaskLogClient) Query() *TaskLogQuery + func (c *TaskLogClient) QueryTasks(tl *TaskLog) *TaskQuery + func (c *TaskLogClient) Update() *TaskLogUpdate + func (c *TaskLogClient) UpdateOne(tl *TaskLog) *TaskLogUpdateOne + func (c *TaskLogClient) UpdateOneID(id uint64) *TaskLogUpdateOne + func (c *TaskLogClient) Use(hooks ...Hook) + type TaskLogCreate struct + func (tlc *TaskLogCreate) Exec(ctx context.Context) error + func (tlc *TaskLogCreate) ExecX(ctx context.Context) + func (tlc *TaskLogCreate) Mutation() *TaskLogMutation + func (tlc *TaskLogCreate) Save(ctx context.Context) (*TaskLog, error) + func (tlc *TaskLogCreate) SaveX(ctx context.Context) *TaskLog + func (tlc *TaskLogCreate) SetFinishedAt(t time.Time) *TaskLogCreate + func (tlc *TaskLogCreate) SetID(u uint64) *TaskLogCreate + func (tlc *TaskLogCreate) SetNillableStartedAt(t *time.Time) *TaskLogCreate + func (tlc *TaskLogCreate) SetNillableTasksID(id *uint64) *TaskLogCreate + func (tlc *TaskLogCreate) SetResult(u uint8) *TaskLogCreate + func (tlc *TaskLogCreate) SetStartedAt(t time.Time) *TaskLogCreate + func (tlc *TaskLogCreate) SetTasks(t *Task) *TaskLogCreate + func (tlc *TaskLogCreate) SetTasksID(id uint64) *TaskLogCreate + type TaskLogCreateBulk struct + func (tlcb *TaskLogCreateBulk) Exec(ctx context.Context) error + func (tlcb *TaskLogCreateBulk) ExecX(ctx context.Context) + func (tlcb *TaskLogCreateBulk) Save(ctx context.Context) ([]*TaskLog, error) + func (tlcb *TaskLogCreateBulk) SaveX(ctx context.Context) []*TaskLog + type TaskLogDelete struct + func (tld *TaskLogDelete) Exec(ctx context.Context) (int, error) + func (tld *TaskLogDelete) ExecX(ctx context.Context) int + func (tld *TaskLogDelete) Where(ps ...predicate.TaskLog) *TaskLogDelete + type TaskLogDeleteOne struct + func (tldo *TaskLogDeleteOne) Exec(ctx context.Context) error + func (tldo *TaskLogDeleteOne) ExecX(ctx context.Context) + func (tldo *TaskLogDeleteOne) Where(ps ...predicate.TaskLog) *TaskLogDeleteOne + type TaskLogEdges struct + Tasks *Task + func (e TaskLogEdges) TasksOrErr() (*Task, error) + type TaskLogGroupBy struct + func (s *TaskLogGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *TaskLogGroupBy) BoolX(ctx context.Context) bool + func (s *TaskLogGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *TaskLogGroupBy) BoolsX(ctx context.Context) []bool + func (s *TaskLogGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *TaskLogGroupBy) Float64X(ctx context.Context) float64 + func (s *TaskLogGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *TaskLogGroupBy) Float64sX(ctx context.Context) []float64 + func (s *TaskLogGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *TaskLogGroupBy) IntX(ctx context.Context) int + func (s *TaskLogGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *TaskLogGroupBy) IntsX(ctx context.Context) []int + func (s *TaskLogGroupBy) ScanX(ctx context.Context, v any) + func (s *TaskLogGroupBy) String(ctx context.Context) (_ string, err error) + func (s *TaskLogGroupBy) StringX(ctx context.Context) string + func (s *TaskLogGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *TaskLogGroupBy) StringsX(ctx context.Context) []string + func (tlgb *TaskLogGroupBy) Aggregate(fns ...AggregateFunc) *TaskLogGroupBy + func (tlgb *TaskLogGroupBy) Scan(ctx context.Context, v any) error + type TaskLogMutation struct + func (m *TaskLogMutation) AddField(name string, value ent.Value) error + func (m *TaskLogMutation) AddResult(u int8) + func (m *TaskLogMutation) AddedEdges() []string + func (m *TaskLogMutation) AddedField(name string) (ent.Value, bool) + func (m *TaskLogMutation) AddedFields() []string + func (m *TaskLogMutation) AddedIDs(name string) []ent.Value + func (m *TaskLogMutation) AddedResult() (r int8, exists bool) + func (m *TaskLogMutation) ClearEdge(name string) error + func (m *TaskLogMutation) ClearField(name string) error + func (m *TaskLogMutation) ClearTasks() + func (m *TaskLogMutation) ClearedEdges() []string + func (m *TaskLogMutation) ClearedFields() []string + func (m *TaskLogMutation) EdgeCleared(name string) bool + func (m *TaskLogMutation) Field(name string) (ent.Value, bool) + func (m *TaskLogMutation) FieldCleared(name string) bool + func (m *TaskLogMutation) Fields() []string + func (m *TaskLogMutation) FinishedAt() (r time.Time, exists bool) + func (m *TaskLogMutation) ID() (id uint64, exists bool) + func (m *TaskLogMutation) IDs(ctx context.Context) ([]uint64, error) + func (m *TaskLogMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *TaskLogMutation) OldFinishedAt(ctx context.Context) (v time.Time, err error) + func (m *TaskLogMutation) OldResult(ctx context.Context) (v uint8, err error) + func (m *TaskLogMutation) OldStartedAt(ctx context.Context) (v time.Time, err error) + func (m *TaskLogMutation) Op() Op + func (m *TaskLogMutation) RemovedEdges() []string + func (m *TaskLogMutation) RemovedIDs(name string) []ent.Value + func (m *TaskLogMutation) ResetEdge(name string) error + func (m *TaskLogMutation) ResetField(name string) error + func (m *TaskLogMutation) ResetFinishedAt() + func (m *TaskLogMutation) ResetResult() + func (m *TaskLogMutation) ResetStartedAt() + func (m *TaskLogMutation) ResetTasks() + func (m *TaskLogMutation) Result() (r uint8, exists bool) + func (m *TaskLogMutation) SetField(name string, value ent.Value) error + func (m *TaskLogMutation) SetFinishedAt(t time.Time) + func (m *TaskLogMutation) SetID(id uint64) + func (m *TaskLogMutation) SetOp(op Op) + func (m *TaskLogMutation) SetResult(u uint8) + func (m *TaskLogMutation) SetStartedAt(t time.Time) + func (m *TaskLogMutation) SetTasksID(id uint64) + func (m *TaskLogMutation) StartedAt() (r time.Time, exists bool) + func (m *TaskLogMutation) TasksCleared() bool + func (m *TaskLogMutation) TasksID() (id uint64, exists bool) + func (m *TaskLogMutation) TasksIDs() (ids []uint64) + func (m *TaskLogMutation) Type() string + func (m *TaskLogMutation) Where(ps ...predicate.TaskLog) + func (m *TaskLogMutation) WhereP(ps ...func(*sql.Selector)) + func (m TaskLogMutation) Client() *Client + func (m TaskLogMutation) Tx() (*Tx, error) + type TaskLogPageList struct + List []*TaskLog + PageDetails *PageDetails + type TaskLogPager struct + Filter func(*TaskLogQuery) (*TaskLogQuery, error) + Order OrderFunc + func (p *TaskLogPager) ApplyFilter(query *TaskLogQuery) (*TaskLogQuery, error) + type TaskLogPaginateOption func(*TaskLogPager) + type TaskLogQuery struct + func (tl *TaskLogQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*TaskLogPageList, error) + func (tlq *TaskLogQuery) Aggregate(fns ...AggregateFunc) *TaskLogSelect + func (tlq *TaskLogQuery) All(ctx context.Context) ([]*TaskLog, error) + func (tlq *TaskLogQuery) AllX(ctx context.Context) []*TaskLog + func (tlq *TaskLogQuery) Clone() *TaskLogQuery + func (tlq *TaskLogQuery) Count(ctx context.Context) (int, error) + func (tlq *TaskLogQuery) CountX(ctx context.Context) int + func (tlq *TaskLogQuery) Exist(ctx context.Context) (bool, error) + func (tlq *TaskLogQuery) ExistX(ctx context.Context) bool + func (tlq *TaskLogQuery) First(ctx context.Context) (*TaskLog, error) + func (tlq *TaskLogQuery) FirstID(ctx context.Context) (id uint64, err error) + func (tlq *TaskLogQuery) FirstIDX(ctx context.Context) uint64 + func (tlq *TaskLogQuery) FirstX(ctx context.Context) *TaskLog + func (tlq *TaskLogQuery) GroupBy(field string, fields ...string) *TaskLogGroupBy + func (tlq *TaskLogQuery) IDs(ctx context.Context) (ids []uint64, err error) + func (tlq *TaskLogQuery) IDsX(ctx context.Context) []uint64 + func (tlq *TaskLogQuery) Limit(limit int) *TaskLogQuery + func (tlq *TaskLogQuery) Offset(offset int) *TaskLogQuery + func (tlq *TaskLogQuery) Only(ctx context.Context) (*TaskLog, error) + func (tlq *TaskLogQuery) OnlyID(ctx context.Context) (id uint64, err error) + func (tlq *TaskLogQuery) OnlyIDX(ctx context.Context) uint64 + func (tlq *TaskLogQuery) OnlyX(ctx context.Context) *TaskLog + func (tlq *TaskLogQuery) Order(o ...OrderFunc) *TaskLogQuery + func (tlq *TaskLogQuery) QueryTasks() *TaskQuery + func (tlq *TaskLogQuery) Select(fields ...string) *TaskLogSelect + func (tlq *TaskLogQuery) Unique(unique bool) *TaskLogQuery + func (tlq *TaskLogQuery) Where(ps ...predicate.TaskLog) *TaskLogQuery + func (tlq *TaskLogQuery) WithTasks(opts ...func(*TaskQuery)) *TaskLogQuery + type TaskLogSelect struct + func (s *TaskLogSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *TaskLogSelect) BoolX(ctx context.Context) bool + func (s *TaskLogSelect) Bools(ctx context.Context) ([]bool, error) + func (s *TaskLogSelect) BoolsX(ctx context.Context) []bool + func (s *TaskLogSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *TaskLogSelect) Float64X(ctx context.Context) float64 + func (s *TaskLogSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *TaskLogSelect) Float64sX(ctx context.Context) []float64 + func (s *TaskLogSelect) Int(ctx context.Context) (_ int, err error) + func (s *TaskLogSelect) IntX(ctx context.Context) int + func (s *TaskLogSelect) Ints(ctx context.Context) ([]int, error) + func (s *TaskLogSelect) IntsX(ctx context.Context) []int + func (s *TaskLogSelect) ScanX(ctx context.Context, v any) + func (s *TaskLogSelect) String(ctx context.Context) (_ string, err error) + func (s *TaskLogSelect) StringX(ctx context.Context) string + func (s *TaskLogSelect) Strings(ctx context.Context) ([]string, error) + func (s *TaskLogSelect) StringsX(ctx context.Context) []string + func (tls *TaskLogSelect) Aggregate(fns ...AggregateFunc) *TaskLogSelect + func (tls *TaskLogSelect) Scan(ctx context.Context, v any) error + type TaskLogUpdate struct + func (tl *TaskLogUpdate) SetNotEmptyResult(value uint8) *TaskLogUpdate + func (tlu *TaskLogUpdate) AddResult(u int8) *TaskLogUpdate + func (tlu *TaskLogUpdate) ClearTasks() *TaskLogUpdate + func (tlu *TaskLogUpdate) Exec(ctx context.Context) error + func (tlu *TaskLogUpdate) ExecX(ctx context.Context) + func (tlu *TaskLogUpdate) Mutation() *TaskLogMutation + func (tlu *TaskLogUpdate) Save(ctx context.Context) (int, error) + func (tlu *TaskLogUpdate) SaveX(ctx context.Context) int + func (tlu *TaskLogUpdate) SetFinishedAt(t time.Time) *TaskLogUpdate + func (tlu *TaskLogUpdate) SetNillableTasksID(id *uint64) *TaskLogUpdate + func (tlu *TaskLogUpdate) SetResult(u uint8) *TaskLogUpdate + func (tlu *TaskLogUpdate) SetTasks(t *Task) *TaskLogUpdate + func (tlu *TaskLogUpdate) SetTasksID(id uint64) *TaskLogUpdate + func (tlu *TaskLogUpdate) Where(ps ...predicate.TaskLog) *TaskLogUpdate + type TaskLogUpdateOne struct + func (tl *TaskLogUpdateOne) SetNotEmptyResult(value uint8) *TaskLogUpdateOne + func (tluo *TaskLogUpdateOne) AddResult(u int8) *TaskLogUpdateOne + func (tluo *TaskLogUpdateOne) ClearTasks() *TaskLogUpdateOne + func (tluo *TaskLogUpdateOne) Exec(ctx context.Context) error + func (tluo *TaskLogUpdateOne) ExecX(ctx context.Context) + func (tluo *TaskLogUpdateOne) Mutation() *TaskLogMutation + func (tluo *TaskLogUpdateOne) Save(ctx context.Context) (*TaskLog, error) + func (tluo *TaskLogUpdateOne) SaveX(ctx context.Context) *TaskLog + func (tluo *TaskLogUpdateOne) Select(field string, fields ...string) *TaskLogUpdateOne + func (tluo *TaskLogUpdateOne) SetFinishedAt(t time.Time) *TaskLogUpdateOne + func (tluo *TaskLogUpdateOne) SetNillableTasksID(id *uint64) *TaskLogUpdateOne + func (tluo *TaskLogUpdateOne) SetResult(u uint8) *TaskLogUpdateOne + func (tluo *TaskLogUpdateOne) SetTasks(t *Task) *TaskLogUpdateOne + func (tluo *TaskLogUpdateOne) SetTasksID(id uint64) *TaskLogUpdateOne + func (tluo *TaskLogUpdateOne) Where(ps ...predicate.TaskLog) *TaskLogUpdateOne + type TaskLogs []*TaskLog + type TaskMutation struct + func (m *TaskMutation) AddField(name string, value ent.Value) error + func (m *TaskMutation) AddStatus(u int8) + func (m *TaskMutation) AddTaskLogIDs(ids ...uint64) + func (m *TaskMutation) AddedEdges() []string + func (m *TaskMutation) AddedField(name string) (ent.Value, bool) + func (m *TaskMutation) AddedFields() []string + func (m *TaskMutation) AddedIDs(name string) []ent.Value + func (m *TaskMutation) AddedStatus() (r int8, exists bool) + func (m *TaskMutation) ClearEdge(name string) error + func (m *TaskMutation) ClearField(name string) error + func (m *TaskMutation) ClearStatus() + func (m *TaskMutation) ClearTaskLogs() + func (m *TaskMutation) ClearedEdges() []string + func (m *TaskMutation) ClearedFields() []string + func (m *TaskMutation) CreatedAt() (r time.Time, exists bool) + func (m *TaskMutation) CronExpression() (r string, exists bool) + func (m *TaskMutation) EdgeCleared(name string) bool + func (m *TaskMutation) Field(name string) (ent.Value, bool) + func (m *TaskMutation) FieldCleared(name string) bool + func (m *TaskMutation) Fields() []string + func (m *TaskMutation) ID() (id uint64, exists bool) + func (m *TaskMutation) IDs(ctx context.Context) ([]uint64, error) + func (m *TaskMutation) Name() (r string, exists bool) + func (m *TaskMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) + func (m *TaskMutation) OldCronExpression(ctx context.Context) (v string, err error) + func (m *TaskMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *TaskMutation) OldName(ctx context.Context) (v string, err error) + func (m *TaskMutation) OldPattern(ctx context.Context) (v string, err error) + func (m *TaskMutation) OldPayload(ctx context.Context) (v string, err error) + func (m *TaskMutation) OldStatus(ctx context.Context) (v uint8, err error) + func (m *TaskMutation) OldTaskGroup(ctx context.Context) (v string, err error) + func (m *TaskMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) + func (m *TaskMutation) Op() Op + func (m *TaskMutation) Pattern() (r string, exists bool) + func (m *TaskMutation) Payload() (r string, exists bool) + func (m *TaskMutation) RemoveTaskLogIDs(ids ...uint64) + func (m *TaskMutation) RemovedEdges() []string + func (m *TaskMutation) RemovedIDs(name string) []ent.Value + func (m *TaskMutation) RemovedTaskLogsIDs() (ids []uint64) + func (m *TaskMutation) ResetCreatedAt() + func (m *TaskMutation) ResetCronExpression() + func (m *TaskMutation) ResetEdge(name string) error + func (m *TaskMutation) ResetField(name string) error + func (m *TaskMutation) ResetName() + func (m *TaskMutation) ResetPattern() + func (m *TaskMutation) ResetPayload() + func (m *TaskMutation) ResetStatus() + func (m *TaskMutation) ResetTaskGroup() + func (m *TaskMutation) ResetTaskLogs() + func (m *TaskMutation) ResetUpdatedAt() + func (m *TaskMutation) SetCreatedAt(t time.Time) + func (m *TaskMutation) SetCronExpression(s string) + func (m *TaskMutation) SetField(name string, value ent.Value) error + func (m *TaskMutation) SetID(id uint64) + func (m *TaskMutation) SetName(s string) + func (m *TaskMutation) SetOp(op Op) + func (m *TaskMutation) SetPattern(s string) + func (m *TaskMutation) SetPayload(s string) + func (m *TaskMutation) SetStatus(u uint8) + func (m *TaskMutation) SetTaskGroup(s string) + func (m *TaskMutation) SetUpdatedAt(t time.Time) + func (m *TaskMutation) Status() (r uint8, exists bool) + func (m *TaskMutation) StatusCleared() bool + func (m *TaskMutation) TaskGroup() (r string, exists bool) + func (m *TaskMutation) TaskLogsCleared() bool + func (m *TaskMutation) TaskLogsIDs() (ids []uint64) + func (m *TaskMutation) Type() string + func (m *TaskMutation) UpdatedAt() (r time.Time, exists bool) + func (m *TaskMutation) Where(ps ...predicate.Task) + func (m *TaskMutation) WhereP(ps ...func(*sql.Selector)) + func (m TaskMutation) Client() *Client + func (m TaskMutation) Tx() (*Tx, error) + type TaskPageList struct + List []*Task + PageDetails *PageDetails + type TaskPager struct + Filter func(*TaskQuery) (*TaskQuery, error) + Order OrderFunc + func (p *TaskPager) ApplyFilter(query *TaskQuery) (*TaskQuery, error) + type TaskPaginateOption func(*TaskPager) + type TaskQuery struct + func (t *TaskQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*TaskPageList, error) + func (tq *TaskQuery) Aggregate(fns ...AggregateFunc) *TaskSelect + func (tq *TaskQuery) All(ctx context.Context) ([]*Task, error) + func (tq *TaskQuery) AllX(ctx context.Context) []*Task + func (tq *TaskQuery) Clone() *TaskQuery + func (tq *TaskQuery) Count(ctx context.Context) (int, error) + func (tq *TaskQuery) CountX(ctx context.Context) int + func (tq *TaskQuery) Exist(ctx context.Context) (bool, error) + func (tq *TaskQuery) ExistX(ctx context.Context) bool + func (tq *TaskQuery) First(ctx context.Context) (*Task, error) + func (tq *TaskQuery) FirstID(ctx context.Context) (id uint64, err error) + func (tq *TaskQuery) FirstIDX(ctx context.Context) uint64 + func (tq *TaskQuery) FirstX(ctx context.Context) *Task + func (tq *TaskQuery) GroupBy(field string, fields ...string) *TaskGroupBy + func (tq *TaskQuery) IDs(ctx context.Context) (ids []uint64, err error) + func (tq *TaskQuery) IDsX(ctx context.Context) []uint64 + func (tq *TaskQuery) Limit(limit int) *TaskQuery + func (tq *TaskQuery) Offset(offset int) *TaskQuery + func (tq *TaskQuery) Only(ctx context.Context) (*Task, error) + func (tq *TaskQuery) OnlyID(ctx context.Context) (id uint64, err error) + func (tq *TaskQuery) OnlyIDX(ctx context.Context) uint64 + func (tq *TaskQuery) OnlyX(ctx context.Context) *Task + func (tq *TaskQuery) Order(o ...OrderFunc) *TaskQuery + func (tq *TaskQuery) QueryTaskLogs() *TaskLogQuery + func (tq *TaskQuery) Select(fields ...string) *TaskSelect + func (tq *TaskQuery) Unique(unique bool) *TaskQuery + func (tq *TaskQuery) Where(ps ...predicate.Task) *TaskQuery + func (tq *TaskQuery) WithTaskLogs(opts ...func(*TaskLogQuery)) *TaskQuery + type TaskSelect struct + func (s *TaskSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *TaskSelect) BoolX(ctx context.Context) bool + func (s *TaskSelect) Bools(ctx context.Context) ([]bool, error) + func (s *TaskSelect) BoolsX(ctx context.Context) []bool + func (s *TaskSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *TaskSelect) Float64X(ctx context.Context) float64 + func (s *TaskSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *TaskSelect) Float64sX(ctx context.Context) []float64 + func (s *TaskSelect) Int(ctx context.Context) (_ int, err error) + func (s *TaskSelect) IntX(ctx context.Context) int + func (s *TaskSelect) Ints(ctx context.Context) ([]int, error) + func (s *TaskSelect) IntsX(ctx context.Context) []int + func (s *TaskSelect) ScanX(ctx context.Context, v any) + func (s *TaskSelect) String(ctx context.Context) (_ string, err error) + func (s *TaskSelect) StringX(ctx context.Context) string + func (s *TaskSelect) Strings(ctx context.Context) ([]string, error) + func (s *TaskSelect) StringsX(ctx context.Context) []string + func (ts *TaskSelect) Aggregate(fns ...AggregateFunc) *TaskSelect + func (ts *TaskSelect) Scan(ctx context.Context, v any) error + type TaskUpdate struct + func (t *TaskUpdate) SetNotEmptyCronExpression(value string) *TaskUpdate + func (t *TaskUpdate) SetNotEmptyName(value string) *TaskUpdate + func (t *TaskUpdate) SetNotEmptyPattern(value string) *TaskUpdate + func (t *TaskUpdate) SetNotEmptyPayload(value string) *TaskUpdate + func (t *TaskUpdate) SetNotEmptyStatus(value uint8) *TaskUpdate + func (t *TaskUpdate) SetNotEmptyTaskGroup(value string) *TaskUpdate + func (tu *TaskUpdate) AddStatus(u int8) *TaskUpdate + func (tu *TaskUpdate) AddTaskLogIDs(ids ...uint64) *TaskUpdate + func (tu *TaskUpdate) AddTaskLogs(t ...*TaskLog) *TaskUpdate + func (tu *TaskUpdate) ClearStatus() *TaskUpdate + func (tu *TaskUpdate) ClearTaskLogs() *TaskUpdate + func (tu *TaskUpdate) Exec(ctx context.Context) error + func (tu *TaskUpdate) ExecX(ctx context.Context) + func (tu *TaskUpdate) Mutation() *TaskMutation + func (tu *TaskUpdate) RemoveTaskLogIDs(ids ...uint64) *TaskUpdate + func (tu *TaskUpdate) RemoveTaskLogs(t ...*TaskLog) *TaskUpdate + func (tu *TaskUpdate) Save(ctx context.Context) (int, error) + func (tu *TaskUpdate) SaveX(ctx context.Context) int + func (tu *TaskUpdate) SetCronExpression(s string) *TaskUpdate + func (tu *TaskUpdate) SetName(s string) *TaskUpdate + func (tu *TaskUpdate) SetNillableStatus(u *uint8) *TaskUpdate + func (tu *TaskUpdate) SetPattern(s string) *TaskUpdate + func (tu *TaskUpdate) SetPayload(s string) *TaskUpdate + func (tu *TaskUpdate) SetStatus(u uint8) *TaskUpdate + func (tu *TaskUpdate) SetTaskGroup(s string) *TaskUpdate + func (tu *TaskUpdate) SetUpdatedAt(t time.Time) *TaskUpdate + func (tu *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate + type TaskUpdateOne struct + func (t *TaskUpdateOne) SetNotEmptyCronExpression(value string) *TaskUpdateOne + func (t *TaskUpdateOne) SetNotEmptyName(value string) *TaskUpdateOne + func (t *TaskUpdateOne) SetNotEmptyPattern(value string) *TaskUpdateOne + func (t *TaskUpdateOne) SetNotEmptyPayload(value string) *TaskUpdateOne + func (t *TaskUpdateOne) SetNotEmptyStatus(value uint8) *TaskUpdateOne + func (t *TaskUpdateOne) SetNotEmptyTaskGroup(value string) *TaskUpdateOne + func (tuo *TaskUpdateOne) AddStatus(u int8) *TaskUpdateOne + func (tuo *TaskUpdateOne) AddTaskLogIDs(ids ...uint64) *TaskUpdateOne + func (tuo *TaskUpdateOne) AddTaskLogs(t ...*TaskLog) *TaskUpdateOne + func (tuo *TaskUpdateOne) ClearStatus() *TaskUpdateOne + func (tuo *TaskUpdateOne) ClearTaskLogs() *TaskUpdateOne + func (tuo *TaskUpdateOne) Exec(ctx context.Context) error + func (tuo *TaskUpdateOne) ExecX(ctx context.Context) + func (tuo *TaskUpdateOne) Mutation() *TaskMutation + func (tuo *TaskUpdateOne) RemoveTaskLogIDs(ids ...uint64) *TaskUpdateOne + func (tuo *TaskUpdateOne) RemoveTaskLogs(t ...*TaskLog) *TaskUpdateOne + func (tuo *TaskUpdateOne) Save(ctx context.Context) (*Task, error) + func (tuo *TaskUpdateOne) SaveX(ctx context.Context) *Task + func (tuo *TaskUpdateOne) Select(field string, fields ...string) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetCronExpression(s string) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetName(s string) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetNillableStatus(u *uint8) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetPattern(s string) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetPayload(s string) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetStatus(u uint8) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetTaskGroup(s string) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetUpdatedAt(t time.Time) *TaskUpdateOne + func (tuo *TaskUpdateOne) Where(ps ...predicate.Task) *TaskUpdateOne + type Tasks []*Task + type TraverseFunc = ent.TraverseFunc + type Traverser = ent.Traverser + type Tx struct + Task *TaskClient + TaskLog *TaskLogClient + func TxFromContext(ctx context.Context) *Tx + func (tx *Tx) Client() *Client + func (tx *Tx) Commit() error + func (tx *Tx) OnCommit(f CommitHook) + func (tx *Tx) OnRollback(f RollbackHook) + func (tx *Tx) Rollback() error + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value