Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Task) predicate.Task
- func Args(v int) predicate.Task
- func ArgsEQ(v int) predicate.Task
- func ArgsIn(vs ...int) predicate.Task
- func ArgsNEQ(v int) predicate.Task
- func ArgsNotIn(vs ...int) predicate.Task
- func Bid(v int) predicate.Task
- func BidEQ(v int) predicate.Task
- func BidIn(vs ...int) predicate.Task
- func BidNEQ(v int) predicate.Task
- func BidNotIn(vs ...int) predicate.Task
- func CapEQ(v defaults.Capability) predicate.Task
- func CapIn(vs ...defaults.Capability) predicate.Task
- func CapNEQ(v defaults.Capability) predicate.Task
- func CapNotIn(vs ...defaults.Capability) predicate.Task
- func CapValidator(c defaults.Capability) error
- func CreatedAt(v time.Time) predicate.Task
- func CreatedAtEQ(v time.Time) predicate.Task
- func CreatedAtGT(v time.Time) predicate.Task
- func CreatedAtGTE(v time.Time) predicate.Task
- func CreatedAtIn(vs ...time.Time) predicate.Task
- func CreatedAtLT(v time.Time) predicate.Task
- func CreatedAtLTE(v time.Time) predicate.Task
- func CreatedAtNEQ(v time.Time) predicate.Task
- func CreatedAtNotIn(vs ...time.Time) predicate.Task
- func DoneAt(v time.Time) predicate.Task
- func DoneAtEQ(v time.Time) predicate.Task
- func DoneAtGT(v time.Time) predicate.Task
- func DoneAtGTE(v time.Time) predicate.Task
- func DoneAtIn(vs ...time.Time) predicate.Task
- func DoneAtIsNil() predicate.Task
- func DoneAtLT(v time.Time) predicate.Task
- func DoneAtLTE(v time.Time) predicate.Task
- func DoneAtNEQ(v time.Time) predicate.Task
- func DoneAtNotIn(vs ...time.Time) predicate.Task
- func DoneAtNotNil() predicate.Task
- func Gid(v int) predicate.Task
- func GidEQ(v int) predicate.Task
- func GidIn(vs ...int) predicate.Task
- func GidNEQ(v int) predicate.Task
- func GidNotIn(vs ...int) predicate.Task
- func HasBeacon() predicate.Task
- func HasBeaconWith(preds ...predicate.Beacon) predicate.Task
- func HasBlobberArgs() predicate.Task
- func HasBlobberArgsWith(preds ...predicate.Blobber) predicate.Task
- func HasBlobberOutput() predicate.Task
- func HasBlobberOutputWith(preds ...predicate.Blobber) predicate.Task
- func HasGroup() predicate.Task
- func HasGroupWith(preds ...predicate.Group) predicate.Task
- func ID(id int) predicate.Task
- func IDEQ(id int) predicate.Task
- func IDGT(id int) predicate.Task
- func IDGTE(id int) predicate.Task
- func IDIn(ids ...int) predicate.Task
- func IDLT(id int) predicate.Task
- func IDLTE(id int) predicate.Task
- func IDNEQ(id int) predicate.Task
- func IDNotIn(ids ...int) predicate.Task
- func Not(p predicate.Task) predicate.Task
- func Or(predicates ...predicate.Task) predicate.Task
- func Output(v int) predicate.Task
- func OutputBig(v bool) predicate.Task
- func OutputBigEQ(v bool) predicate.Task
- func OutputBigIsNil() predicate.Task
- func OutputBigNEQ(v bool) predicate.Task
- func OutputBigNotNil() predicate.Task
- func OutputEQ(v int) predicate.Task
- func OutputIn(vs ...int) predicate.Task
- func OutputIsNil() predicate.Task
- func OutputNEQ(v int) predicate.Task
- func OutputNotIn(vs ...int) predicate.Task
- func OutputNotNil() predicate.Task
- func PushedAt(v time.Time) predicate.Task
- func PushedAtEQ(v time.Time) predicate.Task
- func PushedAtGT(v time.Time) predicate.Task
- func PushedAtGTE(v time.Time) predicate.Task
- func PushedAtIn(vs ...time.Time) predicate.Task
- func PushedAtIsNil() predicate.Task
- func PushedAtLT(v time.Time) predicate.Task
- func PushedAtLTE(v time.Time) predicate.Task
- func PushedAtNEQ(v time.Time) predicate.Task
- func PushedAtNotIn(vs ...time.Time) predicate.Task
- func PushedAtNotNil() predicate.Task
- func StatusEQ(v defaults.TaskStatus) predicate.Task
- func StatusIn(vs ...defaults.TaskStatus) predicate.Task
- func StatusNEQ(v defaults.TaskStatus) predicate.Task
- func StatusNotIn(vs ...defaults.TaskStatus) predicate.Task
- func StatusValidator(s defaults.TaskStatus) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByArgs(opts ...sql.OrderTermOption) OrderOption
- func ByBeaconField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBid(opts ...sql.OrderTermOption) OrderOption
- func ByBlobberArgsField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBlobberOutputField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCap(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDoneAt(opts ...sql.OrderTermOption) OrderOption
- func ByGid(opts ...sql.OrderTermOption) OrderOption
- func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOutput(opts ...sql.OrderTermOption) OrderOption
- func ByOutputBig(opts ...sql.OrderTermOption) OrderOption
- func ByPushedAt(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" // FieldGid holds the string denoting the gid field in the database. FieldGid = "gid" // FieldBid holds the string denoting the bid field in the database. FieldBid = "bid" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldPushedAt holds the string denoting the pushed_at field in the database. FieldPushedAt = "pushed_at" // FieldDoneAt holds the string denoting the done_at field in the database. FieldDoneAt = "done_at" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldCap holds the string denoting the cap field in the database. FieldCap = "cap" // FieldArgs holds the string denoting the args field in the database. FieldArgs = "args" // FieldOutput holds the string denoting the output field in the database. FieldOutput = "output" // FieldOutputBig holds the string denoting the output_big field in the database. FieldOutputBig = "output_big" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // EdgeBeacon holds the string denoting the beacon edge name in mutations. EdgeBeacon = "beacon" // EdgeBlobberArgs holds the string denoting the blobber_args edge name in mutations. EdgeBlobberArgs = "blobber_args" // EdgeBlobberOutput holds the string denoting the blobber_output edge name in mutations. EdgeBlobberOutput = "blobber_output" // Table holds the table name of the task in the database. Table = "task" // GroupTable is the table that holds the group relation/edge. GroupTable = "task" // GroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupInverseTable = "group" // GroupColumn is the table column denoting the group relation/edge. GroupColumn = "gid" // BeaconTable is the table that holds the beacon relation/edge. BeaconTable = "task" // BeaconInverseTable is the table name for the Beacon entity. // It exists in this package in order to avoid circular dependency with the "beacon" package. BeaconInverseTable = "beacon" // BeaconColumn is the table column denoting the beacon relation/edge. BeaconColumn = "bid" // BlobberArgsTable is the table that holds the blobber_args relation/edge. BlobberArgsTable = "task" // BlobberArgsInverseTable is the table name for the Blobber entity. // It exists in this package in order to avoid circular dependency with the "blobber" package. BlobberArgsInverseTable = "blobber" // BlobberArgsColumn is the table column denoting the blobber_args relation/edge. BlobberArgsColumn = "args" // BlobberOutputTable is the table that holds the blobber_output relation/edge. BlobberOutputTable = "task" // BlobberOutputInverseTable is the table name for the Blobber entity. // It exists in this package in order to avoid circular dependency with the "blobber" package. BlobberOutputInverseTable = "blobber" // BlobberOutputColumn is the table column denoting the blobber_output relation/edge. BlobberOutputColumn = "output" )
Variables ¶
var Columns = []string{ FieldID, FieldGid, FieldBid, FieldCreatedAt, FieldPushedAt, FieldDoneAt, FieldStatus, FieldCap, FieldArgs, FieldOutput, FieldOutputBig, }
Columns holds all SQL columns for task fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Functions ¶
func CapEQ ¶
func CapEQ(v defaults.Capability) predicate.Task
CapEQ applies the EQ predicate on the "cap" field.
func CapIn ¶
func CapIn(vs ...defaults.Capability) predicate.Task
CapIn applies the In predicate on the "cap" field.
func CapNEQ ¶
func CapNEQ(v defaults.Capability) predicate.Task
CapNEQ applies the NEQ predicate on the "cap" field.
func CapNotIn ¶
func CapNotIn(vs ...defaults.Capability) predicate.Task
CapNotIn applies the NotIn predicate on the "cap" field.
func CapValidator ¶
func CapValidator(c defaults.Capability) error
CapValidator is a validator for the "cap" field enum values. It is called by the builders before save.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DoneAt ¶
DoneAt applies equality check predicate on the "done_at" field. It's identical to DoneAtEQ.
func DoneAtIsNil ¶
DoneAtIsNil applies the IsNil predicate on the "done_at" field.
func DoneAtNotIn ¶
DoneAtNotIn applies the NotIn predicate on the "done_at" field.
func DoneAtNotNil ¶
DoneAtNotNil applies the NotNil predicate on the "done_at" field.
func HasBeaconWith ¶
HasBeaconWith applies the HasEdge predicate on the "beacon" edge with a given conditions (other predicates).
func HasBlobberArgs ¶
HasBlobberArgs applies the HasEdge predicate on the "blobber_args" edge.
func HasBlobberArgsWith ¶
HasBlobberArgsWith applies the HasEdge predicate on the "blobber_args" edge with a given conditions (other predicates).
func HasBlobberOutput ¶
HasBlobberOutput applies the HasEdge predicate on the "blobber_output" edge.
func HasBlobberOutputWith ¶
HasBlobberOutputWith applies the HasEdge predicate on the "blobber_output" edge with a given conditions (other predicates).
func HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func Output ¶
Output applies equality check predicate on the "output" field. It's identical to OutputEQ.
func OutputBig ¶
OutputBig applies equality check predicate on the "output_big" field. It's identical to OutputBigEQ.
func OutputBigEQ ¶
OutputBigEQ applies the EQ predicate on the "output_big" field.
func OutputBigIsNil ¶
OutputBigIsNil applies the IsNil predicate on the "output_big" field.
func OutputBigNEQ ¶
OutputBigNEQ applies the NEQ predicate on the "output_big" field.
func OutputBigNotNil ¶
OutputBigNotNil applies the NotNil predicate on the "output_big" field.
func OutputIsNil ¶
OutputIsNil applies the IsNil predicate on the "output" field.
func OutputNotIn ¶
OutputNotIn applies the NotIn predicate on the "output" field.
func OutputNotNil ¶
OutputNotNil applies the NotNil predicate on the "output" field.
func PushedAt ¶
PushedAt applies equality check predicate on the "pushed_at" field. It's identical to PushedAtEQ.
func PushedAtEQ ¶
PushedAtEQ applies the EQ predicate on the "pushed_at" field.
func PushedAtGT ¶
PushedAtGT applies the GT predicate on the "pushed_at" field.
func PushedAtGTE ¶
PushedAtGTE applies the GTE predicate on the "pushed_at" field.
func PushedAtIn ¶
PushedAtIn applies the In predicate on the "pushed_at" field.
func PushedAtIsNil ¶
PushedAtIsNil applies the IsNil predicate on the "pushed_at" field.
func PushedAtLT ¶
PushedAtLT applies the LT predicate on the "pushed_at" field.
func PushedAtLTE ¶
PushedAtLTE applies the LTE predicate on the "pushed_at" field.
func PushedAtNEQ ¶
PushedAtNEQ applies the NEQ predicate on the "pushed_at" field.
func PushedAtNotIn ¶
PushedAtNotIn applies the NotIn predicate on the "pushed_at" field.
func PushedAtNotNil ¶
PushedAtNotNil applies the NotNil predicate on the "pushed_at" field.
func StatusEQ ¶
func StatusEQ(v defaults.TaskStatus) predicate.Task
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...defaults.TaskStatus) predicate.Task
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v defaults.TaskStatus) predicate.Task
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...defaults.TaskStatus) predicate.Task
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
func StatusValidator(s defaults.TaskStatus) error
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Task queries.
func ByArgs ¶
func ByArgs(opts ...sql.OrderTermOption) OrderOption
ByArgs orders the results by the args field.
func ByBeaconField ¶
func ByBeaconField(field string, opts ...sql.OrderTermOption) OrderOption
ByBeaconField orders the results by beacon field.
func ByBid ¶
func ByBid(opts ...sql.OrderTermOption) OrderOption
ByBid orders the results by the bid field.
func ByBlobberArgsField ¶
func ByBlobberArgsField(field string, opts ...sql.OrderTermOption) OrderOption
ByBlobberArgsField orders the results by blobber_args field.
func ByBlobberOutputField ¶
func ByBlobberOutputField(field string, opts ...sql.OrderTermOption) OrderOption
ByBlobberOutputField orders the results by blobber_output field.
func ByCap ¶
func ByCap(opts ...sql.OrderTermOption) OrderOption
ByCap orders the results by the cap field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDoneAt ¶
func ByDoneAt(opts ...sql.OrderTermOption) OrderOption
ByDoneAt orders the results by the done_at field.
func ByGid ¶
func ByGid(opts ...sql.OrderTermOption) OrderOption
ByGid orders the results by the gid field.
func ByGroupField ¶
func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
ByGroupField orders the results by group field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOutput ¶
func ByOutput(opts ...sql.OrderTermOption) OrderOption
ByOutput orders the results by the output field.
func ByOutputBig ¶
func ByOutputBig(opts ...sql.OrderTermOption) OrderOption
ByOutputBig orders the results by the output_big field.
func ByPushedAt ¶
func ByPushedAt(opts ...sql.OrderTermOption) OrderOption
ByPushedAt orders the results by the pushed_at field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.