model

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitArgs

type CommitArgs struct {
	ID    int64   `json:"id"`
	Expr  *string `json:"expr,omitempty"`
	State *string `json:"state,omitempty"`
}

type CreateJobArgs

type CreateJobArgs struct {
	Expr             string     `json:"expr"`
	Name             string     `json:"name"`
	State            string     `json:"state"`
	Timeout          *int       `json:"timeout,omitempty"`
	StartAt          *time.Time `json:"start_at,omitempty"`
	Meta             *string    `json:"meta,omitempty"`
	Retries          *int       `json:"retries,omitempty"`
	DeduplicationKey *string    `json:"deduplication_key,omitempty"`
}

type QueryJobsArgs

type QueryJobsArgs struct {
	Limit  int    `json:"limit"`
	Skip   int    `json:"skip"`
	Filter string `json:"filter"`
}

type QueryJobsMetaArgs

type QueryJobsMetaArgs struct {
	Limit     int       `json:"limit"`
	Skip      int       `json:"skip"`
	IsOneShot bool      `json:"isOneShot"`
	Name      *string   `json:"name,omitempty"`
	From      time.Time `json:"from"`
	To        time.Time `json:"to"`
	Statuses  []string  `json:"statuses"`
	Query     *string   `json:"query,omitempty"`
}

type SearchJobsByMetaResult

type SearchJobsByMetaResult struct {
	Jobs  []sqlc.TinyJob `json:"jobs"`
	Total int            `json:"total"`
}

type UpdateJobArgs

type UpdateJobArgs struct {
	Expr    *string `json:"expr,omitempty"`
	State   *string `json:"state,omitempty"`
	Timeout *int    `json:"timeout,omitempty"`
}

Jump to

Keyboard shortcuts

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