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 CreatedBy(v string) predicate.Origin
- func CreatedByContains(v string) predicate.Origin
- func CreatedByContainsFold(v string) predicate.Origin
- func CreatedByEQ(v string) predicate.Origin
- func CreatedByEqualFold(v string) predicate.Origin
- func CreatedByGT(v string) predicate.Origin
- func CreatedByGTE(v string) predicate.Origin
- func CreatedByHasPrefix(v string) predicate.Origin
- func CreatedByHasSuffix(v string) predicate.Origin
- func CreatedByIn(vs ...string) predicate.Origin
- func CreatedByIsNil() predicate.Origin
- func CreatedByLT(v string) predicate.Origin
- func CreatedByLTE(v string) predicate.Origin
- func CreatedByNEQ(v string) predicate.Origin
- func CreatedByNotIn(vs ...string) predicate.Origin
- func CreatedByNotNil() predicate.Origin
- func DeletedAt(v time.Time) predicate.Origin
- func DeletedAtEQ(v time.Time) predicate.Origin
- func DeletedAtGT(v time.Time) predicate.Origin
- func DeletedAtGTE(v time.Time) predicate.Origin
- func DeletedAtIn(vs ...time.Time) predicate.Origin
- func DeletedAtIsNil() predicate.Origin
- func DeletedAtLT(v time.Time) predicate.Origin
- func DeletedAtLTE(v time.Time) predicate.Origin
- func DeletedAtNEQ(v time.Time) predicate.Origin
- func DeletedAtNotIn(vs ...time.Time) predicate.Origin
- func DeletedAtNotNil() predicate.Origin
- func DeletedBy(v string) predicate.Origin
- func DeletedByContains(v string) predicate.Origin
- func DeletedByContainsFold(v string) predicate.Origin
- func DeletedByEQ(v string) predicate.Origin
- func DeletedByEqualFold(v string) predicate.Origin
- func DeletedByGT(v string) predicate.Origin
- func DeletedByGTE(v string) predicate.Origin
- func DeletedByHasPrefix(v string) predicate.Origin
- func DeletedByHasSuffix(v string) predicate.Origin
- func DeletedByIn(vs ...string) predicate.Origin
- func DeletedByIsNil() predicate.Origin
- func DeletedByLT(v string) predicate.Origin
- func DeletedByLTE(v string) predicate.Origin
- func DeletedByNEQ(v string) predicate.Origin
- func DeletedByNotIn(vs ...string) predicate.Origin
- func DeletedByNotNil() 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 UpdatedBy(v string) predicate.Origin
- func UpdatedByContains(v string) predicate.Origin
- func UpdatedByContainsFold(v string) predicate.Origin
- func UpdatedByEQ(v string) predicate.Origin
- func UpdatedByEqualFold(v string) predicate.Origin
- func UpdatedByGT(v string) predicate.Origin
- func UpdatedByGTE(v string) predicate.Origin
- func UpdatedByHasPrefix(v string) predicate.Origin
- func UpdatedByHasSuffix(v string) predicate.Origin
- func UpdatedByIn(vs ...string) predicate.Origin
- func UpdatedByIsNil() predicate.Origin
- func UpdatedByLT(v string) predicate.Origin
- func UpdatedByLTE(v string) predicate.Origin
- func UpdatedByNEQ(v string) predicate.Origin
- func UpdatedByNotIn(vs ...string) predicate.Origin
- func UpdatedByNotNil() 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 ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(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 ByUpdatedBy(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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldDeletedBy holds the string denoting the deleted_by field in the database. FieldDeletedBy = "deleted_by" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // 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 ( Hooks [2]ent.Hook Interceptors [1]ent.Interceptor // 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 )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "go.infratographer.com/load-balancer-api/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldDeletedBy, FieldCreatedBy, FieldUpdatedBy, 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 CreatedBy ¶ added in v0.2.0
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶ added in v0.2.0
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶ added in v0.2.0
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶ added in v0.2.0
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶ added in v0.2.0
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶ added in v0.2.0
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶ added in v0.2.0
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶ added in v0.2.0
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶ added in v0.2.0
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶ added in v0.2.0
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶ added in v0.2.0
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶ added in v0.2.0
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶ added in v0.2.0
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶ added in v0.2.0
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶ added in v0.2.0
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶ added in v0.2.0
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶ added in v0.2.0
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶ added in v0.2.0
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶ added in v0.2.0
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶ added in v0.2.0
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶ added in v0.2.0
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶ added in v0.2.0
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶ added in v0.2.0
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶ added in v0.2.0
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶ added in v0.2.0
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶ added in v0.2.0
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶ added in v0.2.0
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶ added in v0.2.0
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶ added in v0.2.0
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶ added in v0.2.0
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶ added in v0.2.0
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶ added in v0.2.0
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶ added in v0.2.0
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶ added in v0.2.0
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶ added in v0.2.0
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶ added in v0.2.0
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶ added in v0.2.0
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶ added in v0.2.0
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶ added in v0.2.0
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶ added in v0.2.0
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶ added in v0.2.0
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶ added in v0.2.0
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶ added in v0.2.0
DeletedByNotNil applies the NotNil predicate on the "deleted_by" 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 UpdatedBy ¶ added in v0.2.0
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶ added in v0.2.0
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶ added in v0.2.0
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶ added in v0.2.0
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶ added in v0.2.0
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶ added in v0.2.0
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶ added in v0.2.0
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶ added in v0.2.0
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶ added in v0.2.0
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶ added in v0.2.0
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶ added in v0.2.0
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶ added in v0.2.0
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶ added in v0.2.0
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶ added in v0.2.0
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶ added in v0.2.0
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶ added in v0.2.0
UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 ByCreatedBy ¶ added in v0.2.0
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByDeletedAt ¶ added in v0.2.0
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeletedBy ¶ added in v0.2.0
func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
ByDeletedBy orders the results by the deleted_by 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 ByUpdatedBy ¶ added in v0.2.0
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.
func ByWeight ¶ added in v0.0.32
func ByWeight(opts ...sql.OrderTermOption) OrderOption
ByWeight orders the results by the weight field.