Documentation ¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.Origin
- func ActiveEQ(v bool) predicate.Origin
- func ActiveNEQ(v bool) predicate.Origin
- func And(predicates ...predicate.Origin) predicate.Origin
- func CreatedAt(v time.Time) predicate.Origin
- func CreatedAtEQ(v time.Time) predicate.Origin
- func CreatedAtGT(v time.Time) predicate.Origin
- func CreatedAtGTE(v time.Time) predicate.Origin
- func CreatedAtIn(vs ...time.Time) predicate.Origin
- func CreatedAtLT(v time.Time) predicate.Origin
- func CreatedAtLTE(v time.Time) predicate.Origin
- func CreatedAtNEQ(v time.Time) predicate.Origin
- func CreatedAtNotIn(vs ...time.Time) predicate.Origin
- func HasPool() predicate.Origin
- func HasPoolWith(preds ...predicate.Pool) predicate.Origin
- func ID(id gidx.PrefixedID) predicate.Origin
- func IDEQ(id gidx.PrefixedID) predicate.Origin
- func IDGT(id gidx.PrefixedID) predicate.Origin
- func IDGTE(id gidx.PrefixedID) predicate.Origin
- func IDIn(ids ...gidx.PrefixedID) predicate.Origin
- func IDLT(id gidx.PrefixedID) predicate.Origin
- func IDLTE(id gidx.PrefixedID) predicate.Origin
- func IDNEQ(id gidx.PrefixedID) predicate.Origin
- func IDNotIn(ids ...gidx.PrefixedID) predicate.Origin
- func Name(v string) predicate.Origin
- func NameContains(v string) predicate.Origin
- func NameContainsFold(v string) predicate.Origin
- func NameEQ(v string) predicate.Origin
- func NameEqualFold(v string) predicate.Origin
- func NameGT(v string) predicate.Origin
- func NameGTE(v string) predicate.Origin
- func NameHasPrefix(v string) predicate.Origin
- func NameHasSuffix(v string) predicate.Origin
- func NameIn(vs ...string) predicate.Origin
- func NameLT(v string) predicate.Origin
- func NameLTE(v string) predicate.Origin
- func NameNEQ(v string) predicate.Origin
- func NameNotIn(vs ...string) predicate.Origin
- func Not(p predicate.Origin) predicate.Origin
- func Or(predicates ...predicate.Origin) predicate.Origin
- func PoolID(v gidx.PrefixedID) predicate.Origin
- func PoolIDContains(v gidx.PrefixedID) predicate.Origin
- func PoolIDContainsFold(v gidx.PrefixedID) predicate.Origin
- func PoolIDEQ(v gidx.PrefixedID) predicate.Origin
- func PoolIDEqualFold(v gidx.PrefixedID) predicate.Origin
- func PoolIDGT(v gidx.PrefixedID) predicate.Origin
- func PoolIDGTE(v gidx.PrefixedID) predicate.Origin
- func PoolIDHasPrefix(v gidx.PrefixedID) predicate.Origin
- func PoolIDHasSuffix(v gidx.PrefixedID) predicate.Origin
- func PoolIDIn(vs ...gidx.PrefixedID) predicate.Origin
- func PoolIDLT(v gidx.PrefixedID) predicate.Origin
- func PoolIDLTE(v gidx.PrefixedID) predicate.Origin
- func PoolIDNEQ(v gidx.PrefixedID) predicate.Origin
- func PoolIDNotIn(vs ...gidx.PrefixedID) predicate.Origin
- func PortNumber(v int) predicate.Origin
- func PortNumberEQ(v int) predicate.Origin
- func PortNumberGT(v int) predicate.Origin
- func PortNumberGTE(v int) predicate.Origin
- func PortNumberIn(vs ...int) predicate.Origin
- func PortNumberLT(v int) predicate.Origin
- func PortNumberLTE(v int) predicate.Origin
- func PortNumberNEQ(v int) predicate.Origin
- func PortNumberNotIn(vs ...int) predicate.Origin
- func Target(v string) predicate.Origin
- func TargetContains(v string) predicate.Origin
- func TargetContainsFold(v string) predicate.Origin
- func TargetEQ(v string) predicate.Origin
- func TargetEqualFold(v string) predicate.Origin
- func TargetGT(v string) predicate.Origin
- func TargetGTE(v string) predicate.Origin
- func TargetHasPrefix(v string) predicate.Origin
- func TargetHasSuffix(v string) predicate.Origin
- func TargetIn(vs ...string) predicate.Origin
- func TargetLT(v string) predicate.Origin
- func TargetLTE(v string) predicate.Origin
- func TargetNEQ(v string) predicate.Origin
- func TargetNotIn(vs ...string) predicate.Origin
- func UpdatedAt(v time.Time) predicate.Origin
- func UpdatedAtEQ(v time.Time) predicate.Origin
- func UpdatedAtGT(v time.Time) predicate.Origin
- func UpdatedAtGTE(v time.Time) predicate.Origin
- func UpdatedAtIn(vs ...time.Time) predicate.Origin
- func UpdatedAtLT(v time.Time) predicate.Origin
- func UpdatedAtLTE(v time.Time) predicate.Origin
- func UpdatedAtNEQ(v time.Time) predicate.Origin
- func UpdatedAtNotIn(vs ...time.Time) predicate.Origin
- func ValidColumn(column string) bool
- func Weight(v int32) predicate.Origin
- func WeightEQ(v int32) predicate.Origin
- func WeightGT(v int32) predicate.Origin
- func WeightGTE(v int32) predicate.Origin
- func WeightIn(vs ...int32) predicate.Origin
- func WeightLT(v int32) predicate.Origin
- func WeightLTE(v int32) predicate.Origin
- func WeightNEQ(v int32) predicate.Origin
- func WeightNotIn(vs ...int32) predicate.Origin
- type OrderOption
- func ByActive(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPoolField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPoolID(opts ...sql.OrderTermOption) OrderOption
- func ByPortNumber(opts ...sql.OrderTermOption) OrderOption
- func ByTarget(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWeight(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the origin type in the database. Label = "origin" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldWeight holds the string denoting the weight field in the database. FieldWeight = "weight" // FieldTarget holds the string denoting the target field in the database. FieldTarget = "target" // FieldPortNumber holds the string denoting the port_number field in the database. FieldPortNumber = "port_number" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldPoolID holds the string denoting the pool_id field in the database. FieldPoolID = "pool_id" // EdgePool holds the string denoting the pool edge name in mutations. EdgePool = "pool" // Table holds the table name of the origin in the database. Table = "origins" // PoolTable is the table that holds the pool relation/edge. PoolTable = "origins" // PoolInverseTable is the table name for the Pool entity. // It exists in this package in order to avoid circular dependency with the "pool" package. PoolInverseTable = "pools" // PoolColumn is the table column denoting the pool relation/edge. PoolColumn = "pool_id" )
Variables ¶
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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultWeight holds the default value on creation for the "weight" field. DefaultWeight int32 // TargetValidator is a validator for the "target" field. It is called by the builders before save. TargetValidator func(string) error // PortNumberValidator is a validator for the "port_number" field. It is called by the builders before save. PortNumberValidator func(int) error // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool // PoolIDValidator is a validator for the "pool_id" field. It is called by the builders before save. PoolIDValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() gidx.PrefixedID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldWeight, FieldTarget, FieldPortNumber, FieldActive, FieldPoolID, }
Columns holds all SQL columns for origin fields.
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
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 HasPoolWith ¶
HasPoolWith applies the HasEdge predicate on the "pool" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id gidx.PrefixedID) predicate.Origin
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id gidx.PrefixedID) predicate.Origin
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id gidx.PrefixedID) predicate.Origin
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...gidx.PrefixedID) predicate.Origin
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id gidx.PrefixedID) predicate.Origin
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id gidx.PrefixedID) predicate.Origin
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id gidx.PrefixedID) predicate.Origin
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...gidx.PrefixedID) predicate.Origin
IDNotIn applies the NotIn predicate on the ID field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func PoolID ¶
func PoolID(v gidx.PrefixedID) predicate.Origin
PoolID applies equality check predicate on the "pool_id" field. It's identical to PoolIDEQ.
func PoolIDContains ¶
func PoolIDContains(v gidx.PrefixedID) predicate.Origin
PoolIDContains applies the Contains predicate on the "pool_id" field.
func PoolIDContainsFold ¶
func PoolIDContainsFold(v gidx.PrefixedID) predicate.Origin
PoolIDContainsFold applies the ContainsFold predicate on the "pool_id" field.
func PoolIDEQ ¶
func PoolIDEQ(v gidx.PrefixedID) predicate.Origin
PoolIDEQ applies the EQ predicate on the "pool_id" field.
func PoolIDEqualFold ¶
func PoolIDEqualFold(v gidx.PrefixedID) predicate.Origin
PoolIDEqualFold applies the EqualFold predicate on the "pool_id" field.
func PoolIDGT ¶
func PoolIDGT(v gidx.PrefixedID) predicate.Origin
PoolIDGT applies the GT predicate on the "pool_id" field.
func PoolIDGTE ¶
func PoolIDGTE(v gidx.PrefixedID) predicate.Origin
PoolIDGTE applies the GTE predicate on the "pool_id" field.
func PoolIDHasPrefix ¶
func PoolIDHasPrefix(v gidx.PrefixedID) predicate.Origin
PoolIDHasPrefix applies the HasPrefix predicate on the "pool_id" field.
func PoolIDHasSuffix ¶
func PoolIDHasSuffix(v gidx.PrefixedID) predicate.Origin
PoolIDHasSuffix applies the HasSuffix predicate on the "pool_id" field.
func PoolIDIn ¶
func PoolIDIn(vs ...gidx.PrefixedID) predicate.Origin
PoolIDIn applies the In predicate on the "pool_id" field.
func PoolIDLT ¶
func PoolIDLT(v gidx.PrefixedID) predicate.Origin
PoolIDLT applies the LT predicate on the "pool_id" field.
func PoolIDLTE ¶
func PoolIDLTE(v gidx.PrefixedID) predicate.Origin
PoolIDLTE applies the LTE predicate on the "pool_id" field.
func PoolIDNEQ ¶
func PoolIDNEQ(v gidx.PrefixedID) predicate.Origin
PoolIDNEQ applies the NEQ predicate on the "pool_id" field.
func PoolIDNotIn ¶
func PoolIDNotIn(vs ...gidx.PrefixedID) predicate.Origin
PoolIDNotIn applies the NotIn predicate on the "pool_id" field.
func PortNumber ¶
PortNumber applies equality check predicate on the "port_number" field. It's identical to PortNumberEQ.
func PortNumberEQ ¶
PortNumberEQ applies the EQ predicate on the "port_number" field.
func PortNumberGT ¶
PortNumberGT applies the GT predicate on the "port_number" field.
func PortNumberGTE ¶
PortNumberGTE applies the GTE predicate on the "port_number" field.
func PortNumberIn ¶
PortNumberIn applies the In predicate on the "port_number" field.
func PortNumberLT ¶
PortNumberLT applies the LT predicate on the "port_number" field.
func PortNumberLTE ¶
PortNumberLTE applies the LTE predicate on the "port_number" field.
func PortNumberNEQ ¶
PortNumberNEQ applies the NEQ predicate on the "port_number" field.
func PortNumberNotIn ¶
PortNumberNotIn applies the NotIn predicate on the "port_number" field.
func Target ¶
Target applies equality check predicate on the "target" field. It's identical to TargetEQ.
func TargetContains ¶
TargetContains applies the Contains predicate on the "target" field.
func TargetContainsFold ¶
TargetContainsFold applies the ContainsFold predicate on the "target" field.
func TargetEqualFold ¶
TargetEqualFold applies the EqualFold predicate on the "target" field.
func TargetHasPrefix ¶
TargetHasPrefix applies the HasPrefix predicate on the "target" field.
func TargetHasSuffix ¶
TargetHasSuffix applies the HasSuffix predicate on the "target" field.
func TargetNotIn ¶
TargetNotIn applies the NotIn predicate on the "target" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Weight ¶ added in v0.0.32
Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.
func WeightNotIn ¶ added in v0.0.32
WeightNotIn applies the NotIn predicate on the "weight" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Origin queries.
func ByActive ¶
func ByActive(opts ...sql.OrderTermOption) OrderOption
ByActive orders the results by the active field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at 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 ByPoolField ¶
func ByPoolField(field string, opts ...sql.OrderTermOption) OrderOption
ByPoolField orders the results by pool field.
func ByPoolID ¶
func ByPoolID(opts ...sql.OrderTermOption) OrderOption
ByPoolID orders the results by the pool_id field.
func ByPortNumber ¶
func ByPortNumber(opts ...sql.OrderTermOption) OrderOption
ByPortNumber orders the results by the port_number field.
func ByTarget ¶
func ByTarget(opts ...sql.OrderTermOption) OrderOption
ByTarget orders the results by the target field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByWeight ¶ added in v0.0.32
func ByWeight(opts ...sql.OrderTermOption) OrderOption
ByWeight orders the results by the weight field.