chunk

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the chunk type in the database.
	Label = "chunk"
	// 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"
	// FieldStart holds the string denoting the start field in the database.
	FieldStart = "start"
	// FieldLeaseExpiresAt holds the string denoting the lease_expires_at field in the database.
	FieldLeaseExpiresAt = "lease_expires_at"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// FieldSizeInput holds the string denoting the size_input field in the database.
	FieldSizeInput = "size_input"
	// FieldSizeContent holds the string denoting the size_content field in the database.
	FieldSizeContent = "size_content"
	// FieldSizeOutput holds the string denoting the size_output field in the database.
	FieldSizeOutput = "size_output"
	// FieldSha256Input holds the string denoting the sha256_input field in the database.
	FieldSha256Input = "sha256_input"
	// FieldSha256Content holds the string denoting the sha256_content field in the database.
	FieldSha256Content = "sha256_content"
	// FieldSha256Output holds the string denoting the sha256_output field in the database.
	FieldSha256Output = "sha256_output"
	// EdgeWorker holds the string denoting the worker edge name in mutations.
	EdgeWorker = "worker"
	// Table holds the table name of the chunk in the database.
	Table = "chunks"
	// WorkerTable is the table that holds the worker relation/edge.
	WorkerTable = "chunks"
	// WorkerInverseTable is the table name for the Worker entity.
	// It exists in this package in order to avoid circular dependency with the "worker" package.
	WorkerInverseTable = "workers"
	// WorkerColumn is the table column denoting the worker relation/edge.
	WorkerColumn = "worker_chunks"
)
View Source
const DefaultState = StateNew

StateNew is the default value of the State enum.

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
)

Columns holds all SQL columns for chunk fields.

View Source
var ForeignKeys = []string{
	"worker_chunks",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "chunks" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Chunk) predicate.Chunk

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Chunk

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Chunk

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Chunk

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Chunk

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Chunk

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Chunk

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Chunk

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

func CreatedAtNotIn

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

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

func HasWorker

func HasWorker() predicate.Chunk

HasWorker applies the HasEdge predicate on the "worker" edge.

func HasWorkerWith

func HasWorkerWith(preds ...predicate.Worker) predicate.Chunk

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

func ID

func ID(id string) predicate.Chunk

ID filters vertices based on their ID field.

func IDContainsFold added in v0.2.0

func IDContainsFold(id string) predicate.Chunk

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Chunk

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold added in v0.2.0

func IDEqualFold(id string) predicate.Chunk

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Chunk

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Chunk

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Chunk

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Chunk

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Chunk

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Chunk

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Chunk

IDNotIn applies the NotIn predicate on the ID field.

func LeaseExpiresAt

func LeaseExpiresAt(v time.Time) predicate.Chunk

LeaseExpiresAt applies equality check predicate on the "lease_expires_at" field. It's identical to LeaseExpiresAtEQ.

func LeaseExpiresAtEQ

func LeaseExpiresAtEQ(v time.Time) predicate.Chunk

LeaseExpiresAtEQ applies the EQ predicate on the "lease_expires_at" field.

func LeaseExpiresAtGT

func LeaseExpiresAtGT(v time.Time) predicate.Chunk

LeaseExpiresAtGT applies the GT predicate on the "lease_expires_at" field.

func LeaseExpiresAtGTE

func LeaseExpiresAtGTE(v time.Time) predicate.Chunk

LeaseExpiresAtGTE applies the GTE predicate on the "lease_expires_at" field.

func LeaseExpiresAtIn

func LeaseExpiresAtIn(vs ...time.Time) predicate.Chunk

LeaseExpiresAtIn applies the In predicate on the "lease_expires_at" field.

func LeaseExpiresAtIsNil

func LeaseExpiresAtIsNil() predicate.Chunk

LeaseExpiresAtIsNil applies the IsNil predicate on the "lease_expires_at" field.

func LeaseExpiresAtLT

func LeaseExpiresAtLT(v time.Time) predicate.Chunk

LeaseExpiresAtLT applies the LT predicate on the "lease_expires_at" field.

func LeaseExpiresAtLTE

func LeaseExpiresAtLTE(v time.Time) predicate.Chunk

LeaseExpiresAtLTE applies the LTE predicate on the "lease_expires_at" field.

func LeaseExpiresAtNEQ

func LeaseExpiresAtNEQ(v time.Time) predicate.Chunk

LeaseExpiresAtNEQ applies the NEQ predicate on the "lease_expires_at" field.

func LeaseExpiresAtNotIn

func LeaseExpiresAtNotIn(vs ...time.Time) predicate.Chunk

LeaseExpiresAtNotIn applies the NotIn predicate on the "lease_expires_at" field.

func LeaseExpiresAtNotNil

func LeaseExpiresAtNotNil() predicate.Chunk

LeaseExpiresAtNotNil applies the NotNil predicate on the "lease_expires_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Chunk) predicate.Chunk

Or groups predicates with the OR operator between them.

func Sha256Content

func Sha256Content(v string) predicate.Chunk

Sha256Content applies equality check predicate on the "sha256_content" field. It's identical to Sha256ContentEQ.

func Sha256ContentContains

func Sha256ContentContains(v string) predicate.Chunk

Sha256ContentContains applies the Contains predicate on the "sha256_content" field.

func Sha256ContentContainsFold

func Sha256ContentContainsFold(v string) predicate.Chunk

Sha256ContentContainsFold applies the ContainsFold predicate on the "sha256_content" field.

func Sha256ContentEQ

func Sha256ContentEQ(v string) predicate.Chunk

Sha256ContentEQ applies the EQ predicate on the "sha256_content" field.

func Sha256ContentEqualFold

func Sha256ContentEqualFold(v string) predicate.Chunk

Sha256ContentEqualFold applies the EqualFold predicate on the "sha256_content" field.

func Sha256ContentGT

func Sha256ContentGT(v string) predicate.Chunk

Sha256ContentGT applies the GT predicate on the "sha256_content" field.

func Sha256ContentGTE

func Sha256ContentGTE(v string) predicate.Chunk

Sha256ContentGTE applies the GTE predicate on the "sha256_content" field.

func Sha256ContentHasPrefix

func Sha256ContentHasPrefix(v string) predicate.Chunk

Sha256ContentHasPrefix applies the HasPrefix predicate on the "sha256_content" field.

func Sha256ContentHasSuffix

func Sha256ContentHasSuffix(v string) predicate.Chunk

Sha256ContentHasSuffix applies the HasSuffix predicate on the "sha256_content" field.

func Sha256ContentIn

func Sha256ContentIn(vs ...string) predicate.Chunk

Sha256ContentIn applies the In predicate on the "sha256_content" field.

func Sha256ContentIsNil

func Sha256ContentIsNil() predicate.Chunk

Sha256ContentIsNil applies the IsNil predicate on the "sha256_content" field.

func Sha256ContentLT

func Sha256ContentLT(v string) predicate.Chunk

Sha256ContentLT applies the LT predicate on the "sha256_content" field.

func Sha256ContentLTE

func Sha256ContentLTE(v string) predicate.Chunk

Sha256ContentLTE applies the LTE predicate on the "sha256_content" field.

func Sha256ContentNEQ

func Sha256ContentNEQ(v string) predicate.Chunk

Sha256ContentNEQ applies the NEQ predicate on the "sha256_content" field.

func Sha256ContentNotIn

func Sha256ContentNotIn(vs ...string) predicate.Chunk

Sha256ContentNotIn applies the NotIn predicate on the "sha256_content" field.

func Sha256ContentNotNil

func Sha256ContentNotNil() predicate.Chunk

Sha256ContentNotNil applies the NotNil predicate on the "sha256_content" field.

func Sha256Input

func Sha256Input(v string) predicate.Chunk

Sha256Input applies equality check predicate on the "sha256_input" field. It's identical to Sha256InputEQ.

func Sha256InputContains

func Sha256InputContains(v string) predicate.Chunk

Sha256InputContains applies the Contains predicate on the "sha256_input" field.

func Sha256InputContainsFold

func Sha256InputContainsFold(v string) predicate.Chunk

Sha256InputContainsFold applies the ContainsFold predicate on the "sha256_input" field.

func Sha256InputEQ

func Sha256InputEQ(v string) predicate.Chunk

Sha256InputEQ applies the EQ predicate on the "sha256_input" field.

func Sha256InputEqualFold

func Sha256InputEqualFold(v string) predicate.Chunk

Sha256InputEqualFold applies the EqualFold predicate on the "sha256_input" field.

func Sha256InputGT

func Sha256InputGT(v string) predicate.Chunk

Sha256InputGT applies the GT predicate on the "sha256_input" field.

func Sha256InputGTE

func Sha256InputGTE(v string) predicate.Chunk

Sha256InputGTE applies the GTE predicate on the "sha256_input" field.

func Sha256InputHasPrefix

func Sha256InputHasPrefix(v string) predicate.Chunk

Sha256InputHasPrefix applies the HasPrefix predicate on the "sha256_input" field.

func Sha256InputHasSuffix

func Sha256InputHasSuffix(v string) predicate.Chunk

Sha256InputHasSuffix applies the HasSuffix predicate on the "sha256_input" field.

func Sha256InputIn

func Sha256InputIn(vs ...string) predicate.Chunk

Sha256InputIn applies the In predicate on the "sha256_input" field.

func Sha256InputIsNil

func Sha256InputIsNil() predicate.Chunk

Sha256InputIsNil applies the IsNil predicate on the "sha256_input" field.

func Sha256InputLT

func Sha256InputLT(v string) predicate.Chunk

Sha256InputLT applies the LT predicate on the "sha256_input" field.

func Sha256InputLTE

func Sha256InputLTE(v string) predicate.Chunk

Sha256InputLTE applies the LTE predicate on the "sha256_input" field.

func Sha256InputNEQ

func Sha256InputNEQ(v string) predicate.Chunk

Sha256InputNEQ applies the NEQ predicate on the "sha256_input" field.

func Sha256InputNotIn

func Sha256InputNotIn(vs ...string) predicate.Chunk

Sha256InputNotIn applies the NotIn predicate on the "sha256_input" field.

func Sha256InputNotNil

func Sha256InputNotNil() predicate.Chunk

Sha256InputNotNil applies the NotNil predicate on the "sha256_input" field.

func Sha256Output

func Sha256Output(v string) predicate.Chunk

Sha256Output applies equality check predicate on the "sha256_output" field. It's identical to Sha256OutputEQ.

func Sha256OutputContains

func Sha256OutputContains(v string) predicate.Chunk

Sha256OutputContains applies the Contains predicate on the "sha256_output" field.

func Sha256OutputContainsFold

func Sha256OutputContainsFold(v string) predicate.Chunk

Sha256OutputContainsFold applies the ContainsFold predicate on the "sha256_output" field.

func Sha256OutputEQ

func Sha256OutputEQ(v string) predicate.Chunk

Sha256OutputEQ applies the EQ predicate on the "sha256_output" field.

func Sha256OutputEqualFold

func Sha256OutputEqualFold(v string) predicate.Chunk

Sha256OutputEqualFold applies the EqualFold predicate on the "sha256_output" field.

func Sha256OutputGT

func Sha256OutputGT(v string) predicate.Chunk

Sha256OutputGT applies the GT predicate on the "sha256_output" field.

func Sha256OutputGTE

func Sha256OutputGTE(v string) predicate.Chunk

Sha256OutputGTE applies the GTE predicate on the "sha256_output" field.

func Sha256OutputHasPrefix

func Sha256OutputHasPrefix(v string) predicate.Chunk

Sha256OutputHasPrefix applies the HasPrefix predicate on the "sha256_output" field.

func Sha256OutputHasSuffix

func Sha256OutputHasSuffix(v string) predicate.Chunk

Sha256OutputHasSuffix applies the HasSuffix predicate on the "sha256_output" field.

func Sha256OutputIn

func Sha256OutputIn(vs ...string) predicate.Chunk

Sha256OutputIn applies the In predicate on the "sha256_output" field.

func Sha256OutputIsNil

func Sha256OutputIsNil() predicate.Chunk

Sha256OutputIsNil applies the IsNil predicate on the "sha256_output" field.

func Sha256OutputLT

func Sha256OutputLT(v string) predicate.Chunk

Sha256OutputLT applies the LT predicate on the "sha256_output" field.

func Sha256OutputLTE

func Sha256OutputLTE(v string) predicate.Chunk

Sha256OutputLTE applies the LTE predicate on the "sha256_output" field.

func Sha256OutputNEQ

func Sha256OutputNEQ(v string) predicate.Chunk

Sha256OutputNEQ applies the NEQ predicate on the "sha256_output" field.

func Sha256OutputNotIn

func Sha256OutputNotIn(vs ...string) predicate.Chunk

Sha256OutputNotIn applies the NotIn predicate on the "sha256_output" field.

func Sha256OutputNotNil

func Sha256OutputNotNil() predicate.Chunk

Sha256OutputNotNil applies the NotNil predicate on the "sha256_output" field.

func SizeContent

func SizeContent(v int64) predicate.Chunk

SizeContent applies equality check predicate on the "size_content" field. It's identical to SizeContentEQ.

func SizeContentEQ

func SizeContentEQ(v int64) predicate.Chunk

SizeContentEQ applies the EQ predicate on the "size_content" field.

func SizeContentGT

func SizeContentGT(v int64) predicate.Chunk

SizeContentGT applies the GT predicate on the "size_content" field.

func SizeContentGTE

func SizeContentGTE(v int64) predicate.Chunk

SizeContentGTE applies the GTE predicate on the "size_content" field.

func SizeContentIn

func SizeContentIn(vs ...int64) predicate.Chunk

SizeContentIn applies the In predicate on the "size_content" field.

func SizeContentIsNil

func SizeContentIsNil() predicate.Chunk

SizeContentIsNil applies the IsNil predicate on the "size_content" field.

func SizeContentLT

func SizeContentLT(v int64) predicate.Chunk

SizeContentLT applies the LT predicate on the "size_content" field.

func SizeContentLTE

func SizeContentLTE(v int64) predicate.Chunk

SizeContentLTE applies the LTE predicate on the "size_content" field.

func SizeContentNEQ

func SizeContentNEQ(v int64) predicate.Chunk

SizeContentNEQ applies the NEQ predicate on the "size_content" field.

func SizeContentNotIn

func SizeContentNotIn(vs ...int64) predicate.Chunk

SizeContentNotIn applies the NotIn predicate on the "size_content" field.

func SizeContentNotNil

func SizeContentNotNil() predicate.Chunk

SizeContentNotNil applies the NotNil predicate on the "size_content" field.

func SizeInput

func SizeInput(v int64) predicate.Chunk

SizeInput applies equality check predicate on the "size_input" field. It's identical to SizeInputEQ.

func SizeInputEQ

func SizeInputEQ(v int64) predicate.Chunk

SizeInputEQ applies the EQ predicate on the "size_input" field.

func SizeInputGT

func SizeInputGT(v int64) predicate.Chunk

SizeInputGT applies the GT predicate on the "size_input" field.

func SizeInputGTE

func SizeInputGTE(v int64) predicate.Chunk

SizeInputGTE applies the GTE predicate on the "size_input" field.

func SizeInputIn

func SizeInputIn(vs ...int64) predicate.Chunk

SizeInputIn applies the In predicate on the "size_input" field.

func SizeInputIsNil

func SizeInputIsNil() predicate.Chunk

SizeInputIsNil applies the IsNil predicate on the "size_input" field.

func SizeInputLT

func SizeInputLT(v int64) predicate.Chunk

SizeInputLT applies the LT predicate on the "size_input" field.

func SizeInputLTE

func SizeInputLTE(v int64) predicate.Chunk

SizeInputLTE applies the LTE predicate on the "size_input" field.

func SizeInputNEQ

func SizeInputNEQ(v int64) predicate.Chunk

SizeInputNEQ applies the NEQ predicate on the "size_input" field.

func SizeInputNotIn

func SizeInputNotIn(vs ...int64) predicate.Chunk

SizeInputNotIn applies the NotIn predicate on the "size_input" field.

func SizeInputNotNil

func SizeInputNotNil() predicate.Chunk

SizeInputNotNil applies the NotNil predicate on the "size_input" field.

func SizeOutput

func SizeOutput(v int64) predicate.Chunk

SizeOutput applies equality check predicate on the "size_output" field. It's identical to SizeOutputEQ.

func SizeOutputEQ

func SizeOutputEQ(v int64) predicate.Chunk

SizeOutputEQ applies the EQ predicate on the "size_output" field.

func SizeOutputGT

func SizeOutputGT(v int64) predicate.Chunk

SizeOutputGT applies the GT predicate on the "size_output" field.

func SizeOutputGTE

func SizeOutputGTE(v int64) predicate.Chunk

SizeOutputGTE applies the GTE predicate on the "size_output" field.

func SizeOutputIn

func SizeOutputIn(vs ...int64) predicate.Chunk

SizeOutputIn applies the In predicate on the "size_output" field.

func SizeOutputIsNil

func SizeOutputIsNil() predicate.Chunk

SizeOutputIsNil applies the IsNil predicate on the "size_output" field.

func SizeOutputLT

func SizeOutputLT(v int64) predicate.Chunk

SizeOutputLT applies the LT predicate on the "size_output" field.

func SizeOutputLTE

func SizeOutputLTE(v int64) predicate.Chunk

SizeOutputLTE applies the LTE predicate on the "size_output" field.

func SizeOutputNEQ

func SizeOutputNEQ(v int64) predicate.Chunk

SizeOutputNEQ applies the NEQ predicate on the "size_output" field.

func SizeOutputNotIn

func SizeOutputNotIn(vs ...int64) predicate.Chunk

SizeOutputNotIn applies the NotIn predicate on the "size_output" field.

func SizeOutputNotNil

func SizeOutputNotNil() predicate.Chunk

SizeOutputNotNil applies the NotNil predicate on the "size_output" field.

func Start

func Start(v time.Time) predicate.Chunk

Start applies equality check predicate on the "start" field. It's identical to StartEQ.

func StartEQ

func StartEQ(v time.Time) predicate.Chunk

StartEQ applies the EQ predicate on the "start" field.

func StartGT

func StartGT(v time.Time) predicate.Chunk

StartGT applies the GT predicate on the "start" field.

func StartGTE

func StartGTE(v time.Time) predicate.Chunk

StartGTE applies the GTE predicate on the "start" field.

func StartIn

func StartIn(vs ...time.Time) predicate.Chunk

StartIn applies the In predicate on the "start" field.

func StartLT

func StartLT(v time.Time) predicate.Chunk

StartLT applies the LT predicate on the "start" field.

func StartLTE

func StartLTE(v time.Time) predicate.Chunk

StartLTE applies the LTE predicate on the "start" field.

func StartNEQ

func StartNEQ(v time.Time) predicate.Chunk

StartNEQ applies the NEQ predicate on the "start" field.

func StartNotIn

func StartNotIn(vs ...time.Time) predicate.Chunk

StartNotIn applies the NotIn predicate on the "start" field.

func StateEQ

func StateEQ(v State) predicate.Chunk

StateEQ applies the EQ predicate on the "state" field.

func StateIn

func StateIn(vs ...State) predicate.Chunk

StateIn applies the In predicate on the "state" field.

func StateNEQ

func StateNEQ(v State) predicate.Chunk

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...State) predicate.Chunk

StateNotIn applies the NotIn predicate on the "state" field.

func StateValidator

func StateValidator(s State) error

StateValidator is a validator for the "state" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Chunk

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Chunk

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Chunk

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Chunk

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Chunk

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Chunk

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Chunk

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

func UpdatedAtNotIn

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

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 added in v0.2.0

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Chunk queries.

func ByCreatedAt added in v0.2.0

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

ByCreatedAt orders the results by the created_at field.

func ByID added in v0.2.0

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

ByID orders the results by the id field.

func ByLeaseExpiresAt added in v0.2.0

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

ByLeaseExpiresAt orders the results by the lease_expires_at field.

func BySha256Content added in v0.2.0

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

BySha256Content orders the results by the sha256_content field.

func BySha256Input added in v0.2.0

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

BySha256Input orders the results by the sha256_input field.

func BySha256Output added in v0.2.0

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

BySha256Output orders the results by the sha256_output field.

func BySizeContent added in v0.2.0

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

BySizeContent orders the results by the size_content field.

func BySizeInput added in v0.2.0

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

BySizeInput orders the results by the size_input field.

func BySizeOutput added in v0.2.0

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

BySizeOutput orders the results by the size_output field.

func ByStart added in v0.2.0

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

ByStart orders the results by the start field.

func ByState added in v0.2.0

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

ByState orders the results by the state field.

func ByUpdatedAt added in v0.2.0

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

ByUpdatedAt orders the results by the updated_at field.

func ByWorkerField added in v0.2.0

func ByWorkerField(field string, opts ...sql.OrderTermOption) OrderOption

ByWorkerField orders the results by worker field.

type State

type State string

State defines the type for the "state" enum field.

const (
	StateNew         State = "New"
	StateDownloading State = "Downloading"
	StateReady       State = "Ready"
	StateProcessing  State = "Processing"
	StateDone        State = "Done"
	StateNotFound    State = "NotFound"
)

State values.

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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