Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AllowListItem) predicate.AllowListItem
- func Comment(v string) predicate.AllowListItem
- func CommentContains(v string) predicate.AllowListItem
- func CommentContainsFold(v string) predicate.AllowListItem
- func CommentEQ(v string) predicate.AllowListItem
- func CommentEqualFold(v string) predicate.AllowListItem
- func CommentGT(v string) predicate.AllowListItem
- func CommentGTE(v string) predicate.AllowListItem
- func CommentHasPrefix(v string) predicate.AllowListItem
- func CommentHasSuffix(v string) predicate.AllowListItem
- func CommentIn(vs ...string) predicate.AllowListItem
- func CommentIsNil() predicate.AllowListItem
- func CommentLT(v string) predicate.AllowListItem
- func CommentLTE(v string) predicate.AllowListItem
- func CommentNEQ(v string) predicate.AllowListItem
- func CommentNotIn(vs ...string) predicate.AllowListItem
- func CommentNotNil() predicate.AllowListItem
- func CreatedAt(v time.Time) predicate.AllowListItem
- func CreatedAtEQ(v time.Time) predicate.AllowListItem
- func CreatedAtGT(v time.Time) predicate.AllowListItem
- func CreatedAtGTE(v time.Time) predicate.AllowListItem
- func CreatedAtIn(vs ...time.Time) predicate.AllowListItem
- func CreatedAtLT(v time.Time) predicate.AllowListItem
- func CreatedAtLTE(v time.Time) predicate.AllowListItem
- func CreatedAtNEQ(v time.Time) predicate.AllowListItem
- func CreatedAtNotIn(vs ...time.Time) predicate.AllowListItem
- func EndIP(v int64) predicate.AllowListItem
- func EndIPEQ(v int64) predicate.AllowListItem
- func EndIPGT(v int64) predicate.AllowListItem
- func EndIPGTE(v int64) predicate.AllowListItem
- func EndIPIn(vs ...int64) predicate.AllowListItem
- func EndIPIsNil() predicate.AllowListItem
- func EndIPLT(v int64) predicate.AllowListItem
- func EndIPLTE(v int64) predicate.AllowListItem
- func EndIPNEQ(v int64) predicate.AllowListItem
- func EndIPNotIn(vs ...int64) predicate.AllowListItem
- func EndIPNotNil() predicate.AllowListItem
- func EndSuffix(v int64) predicate.AllowListItem
- func EndSuffixEQ(v int64) predicate.AllowListItem
- func EndSuffixGT(v int64) predicate.AllowListItem
- func EndSuffixGTE(v int64) predicate.AllowListItem
- func EndSuffixIn(vs ...int64) predicate.AllowListItem
- func EndSuffixIsNil() predicate.AllowListItem
- func EndSuffixLT(v int64) predicate.AllowListItem
- func EndSuffixLTE(v int64) predicate.AllowListItem
- func EndSuffixNEQ(v int64) predicate.AllowListItem
- func EndSuffixNotIn(vs ...int64) predicate.AllowListItem
- func EndSuffixNotNil() predicate.AllowListItem
- func ExpiresAt(v time.Time) predicate.AllowListItem
- func ExpiresAtEQ(v time.Time) predicate.AllowListItem
- func ExpiresAtGT(v time.Time) predicate.AllowListItem
- func ExpiresAtGTE(v time.Time) predicate.AllowListItem
- func ExpiresAtIn(vs ...time.Time) predicate.AllowListItem
- func ExpiresAtIsNil() predicate.AllowListItem
- func ExpiresAtLT(v time.Time) predicate.AllowListItem
- func ExpiresAtLTE(v time.Time) predicate.AllowListItem
- func ExpiresAtNEQ(v time.Time) predicate.AllowListItem
- func ExpiresAtNotIn(vs ...time.Time) predicate.AllowListItem
- func ExpiresAtNotNil() predicate.AllowListItem
- func HasAllowlist() predicate.AllowListItem
- func HasAllowlistWith(preds ...predicate.AllowList) predicate.AllowListItem
- func ID(id int) predicate.AllowListItem
- func IDEQ(id int) predicate.AllowListItem
- func IDGT(id int) predicate.AllowListItem
- func IDGTE(id int) predicate.AllowListItem
- func IDIn(ids ...int) predicate.AllowListItem
- func IDLT(id int) predicate.AllowListItem
- func IDLTE(id int) predicate.AllowListItem
- func IDNEQ(id int) predicate.AllowListItem
- func IDNotIn(ids ...int) predicate.AllowListItem
- func IPSize(v int64) predicate.AllowListItem
- func IPSizeEQ(v int64) predicate.AllowListItem
- func IPSizeGT(v int64) predicate.AllowListItem
- func IPSizeGTE(v int64) predicate.AllowListItem
- func IPSizeIn(vs ...int64) predicate.AllowListItem
- func IPSizeIsNil() predicate.AllowListItem
- func IPSizeLT(v int64) predicate.AllowListItem
- func IPSizeLTE(v int64) predicate.AllowListItem
- func IPSizeNEQ(v int64) predicate.AllowListItem
- func IPSizeNotIn(vs ...int64) predicate.AllowListItem
- func IPSizeNotNil() predicate.AllowListItem
- func Not(p predicate.AllowListItem) predicate.AllowListItem
- func Or(predicates ...predicate.AllowListItem) predicate.AllowListItem
- func StartIP(v int64) predicate.AllowListItem
- func StartIPEQ(v int64) predicate.AllowListItem
- func StartIPGT(v int64) predicate.AllowListItem
- func StartIPGTE(v int64) predicate.AllowListItem
- func StartIPIn(vs ...int64) predicate.AllowListItem
- func StartIPIsNil() predicate.AllowListItem
- func StartIPLT(v int64) predicate.AllowListItem
- func StartIPLTE(v int64) predicate.AllowListItem
- func StartIPNEQ(v int64) predicate.AllowListItem
- func StartIPNotIn(vs ...int64) predicate.AllowListItem
- func StartIPNotNil() predicate.AllowListItem
- func StartSuffix(v int64) predicate.AllowListItem
- func StartSuffixEQ(v int64) predicate.AllowListItem
- func StartSuffixGT(v int64) predicate.AllowListItem
- func StartSuffixGTE(v int64) predicate.AllowListItem
- func StartSuffixIn(vs ...int64) predicate.AllowListItem
- func StartSuffixIsNil() predicate.AllowListItem
- func StartSuffixLT(v int64) predicate.AllowListItem
- func StartSuffixLTE(v int64) predicate.AllowListItem
- func StartSuffixNEQ(v int64) predicate.AllowListItem
- func StartSuffixNotIn(vs ...int64) predicate.AllowListItem
- func StartSuffixNotNil() predicate.AllowListItem
- func UpdatedAt(v time.Time) predicate.AllowListItem
- func UpdatedAtEQ(v time.Time) predicate.AllowListItem
- func UpdatedAtGT(v time.Time) predicate.AllowListItem
- func UpdatedAtGTE(v time.Time) predicate.AllowListItem
- func UpdatedAtIn(vs ...time.Time) predicate.AllowListItem
- func UpdatedAtLT(v time.Time) predicate.AllowListItem
- func UpdatedAtLTE(v time.Time) predicate.AllowListItem
- func UpdatedAtNEQ(v time.Time) predicate.AllowListItem
- func UpdatedAtNotIn(vs ...time.Time) predicate.AllowListItem
- func ValidColumn(column string) bool
- func Value(v string) predicate.AllowListItem
- func ValueContains(v string) predicate.AllowListItem
- func ValueContainsFold(v string) predicate.AllowListItem
- func ValueEQ(v string) predicate.AllowListItem
- func ValueEqualFold(v string) predicate.AllowListItem
- func ValueGT(v string) predicate.AllowListItem
- func ValueGTE(v string) predicate.AllowListItem
- func ValueHasPrefix(v string) predicate.AllowListItem
- func ValueHasSuffix(v string) predicate.AllowListItem
- func ValueIn(vs ...string) predicate.AllowListItem
- func ValueLT(v string) predicate.AllowListItem
- func ValueLTE(v string) predicate.AllowListItem
- func ValueNEQ(v string) predicate.AllowListItem
- func ValueNotIn(vs ...string) predicate.AllowListItem
- type OrderOption
- func ByAllowlist(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAllowlistCount(opts ...sql.OrderTermOption) OrderOption
- func ByComment(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEndIP(opts ...sql.OrderTermOption) OrderOption
- func ByEndSuffix(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIPSize(opts ...sql.OrderTermOption) OrderOption
- func ByStartIP(opts ...sql.OrderTermOption) OrderOption
- func ByStartSuffix(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByValue(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the allowlistitem type in the database. Label = "allow_list_item" // 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" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldComment holds the string denoting the comment field in the database. FieldComment = "comment" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldStartIP holds the string denoting the start_ip field in the database. FieldStartIP = "start_ip" // FieldEndIP holds the string denoting the end_ip field in the database. FieldEndIP = "end_ip" // FieldStartSuffix holds the string denoting the start_suffix field in the database. FieldStartSuffix = "start_suffix" // FieldEndSuffix holds the string denoting the end_suffix field in the database. FieldEndSuffix = "end_suffix" // FieldIPSize holds the string denoting the ip_size field in the database. FieldIPSize = "ip_size" // EdgeAllowlist holds the string denoting the allowlist edge name in mutations. EdgeAllowlist = "allowlist" // Table holds the table name of the allowlistitem in the database. Table = "allow_list_items" // AllowlistTable is the table that holds the allowlist relation/edge. The primary key declared below. AllowlistTable = "allow_list_allowlist_items" // AllowlistInverseTable is the table name for the AllowList entity. // It exists in this package in order to avoid circular dependency with the "allowlist" package. AllowlistInverseTable = "allow_lists" )
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 )
var ( // AllowlistPrimaryKey and AllowlistColumn2 are the table columns denoting the // primary key for the allowlist relation (M2M). AllowlistPrimaryKey = []string{"allow_list_id", "allow_list_item_id"} )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldExpiresAt, FieldComment, FieldValue, FieldStartIP, FieldEndIP, FieldStartSuffix, FieldEndSuffix, FieldIPSize, }
Columns holds all SQL columns for allowlistitem fields.
Functions ¶
func And ¶
func And(predicates ...predicate.AllowListItem) predicate.AllowListItem
And groups predicates with the AND operator between them.
func Comment ¶
func Comment(v string) predicate.AllowListItem
Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
func CommentContains ¶
func CommentContains(v string) predicate.AllowListItem
CommentContains applies the Contains predicate on the "comment" field.
func CommentContainsFold ¶
func CommentContainsFold(v string) predicate.AllowListItem
CommentContainsFold applies the ContainsFold predicate on the "comment" field.
func CommentEQ ¶
func CommentEQ(v string) predicate.AllowListItem
CommentEQ applies the EQ predicate on the "comment" field.
func CommentEqualFold ¶
func CommentEqualFold(v string) predicate.AllowListItem
CommentEqualFold applies the EqualFold predicate on the "comment" field.
func CommentGT ¶
func CommentGT(v string) predicate.AllowListItem
CommentGT applies the GT predicate on the "comment" field.
func CommentGTE ¶
func CommentGTE(v string) predicate.AllowListItem
CommentGTE applies the GTE predicate on the "comment" field.
func CommentHasPrefix ¶
func CommentHasPrefix(v string) predicate.AllowListItem
CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
func CommentHasSuffix ¶
func CommentHasSuffix(v string) predicate.AllowListItem
CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
func CommentIn ¶
func CommentIn(vs ...string) predicate.AllowListItem
CommentIn applies the In predicate on the "comment" field.
func CommentIsNil ¶
func CommentIsNil() predicate.AllowListItem
CommentIsNil applies the IsNil predicate on the "comment" field.
func CommentLT ¶
func CommentLT(v string) predicate.AllowListItem
CommentLT applies the LT predicate on the "comment" field.
func CommentLTE ¶
func CommentLTE(v string) predicate.AllowListItem
CommentLTE applies the LTE predicate on the "comment" field.
func CommentNEQ ¶
func CommentNEQ(v string) predicate.AllowListItem
CommentNEQ applies the NEQ predicate on the "comment" field.
func CommentNotIn ¶
func CommentNotIn(vs ...string) predicate.AllowListItem
CommentNotIn applies the NotIn predicate on the "comment" field.
func CommentNotNil ¶
func CommentNotNil() predicate.AllowListItem
CommentNotNil applies the NotNil predicate on the "comment" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.AllowListItem
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.AllowListItem
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.AllowListItem
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.AllowListItem
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.AllowListItem
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.AllowListItem
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.AllowListItem
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.AllowListItem
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.AllowListItem
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func EndIP ¶
func EndIP(v int64) predicate.AllowListItem
EndIP applies equality check predicate on the "end_ip" field. It's identical to EndIPEQ.
func EndIPEQ ¶
func EndIPEQ(v int64) predicate.AllowListItem
EndIPEQ applies the EQ predicate on the "end_ip" field.
func EndIPGT ¶
func EndIPGT(v int64) predicate.AllowListItem
EndIPGT applies the GT predicate on the "end_ip" field.
func EndIPGTE ¶
func EndIPGTE(v int64) predicate.AllowListItem
EndIPGTE applies the GTE predicate on the "end_ip" field.
func EndIPIn ¶
func EndIPIn(vs ...int64) predicate.AllowListItem
EndIPIn applies the In predicate on the "end_ip" field.
func EndIPIsNil ¶
func EndIPIsNil() predicate.AllowListItem
EndIPIsNil applies the IsNil predicate on the "end_ip" field.
func EndIPLT ¶
func EndIPLT(v int64) predicate.AllowListItem
EndIPLT applies the LT predicate on the "end_ip" field.
func EndIPLTE ¶
func EndIPLTE(v int64) predicate.AllowListItem
EndIPLTE applies the LTE predicate on the "end_ip" field.
func EndIPNEQ ¶
func EndIPNEQ(v int64) predicate.AllowListItem
EndIPNEQ applies the NEQ predicate on the "end_ip" field.
func EndIPNotIn ¶
func EndIPNotIn(vs ...int64) predicate.AllowListItem
EndIPNotIn applies the NotIn predicate on the "end_ip" field.
func EndIPNotNil ¶
func EndIPNotNil() predicate.AllowListItem
EndIPNotNil applies the NotNil predicate on the "end_ip" field.
func EndSuffix ¶
func EndSuffix(v int64) predicate.AllowListItem
EndSuffix applies equality check predicate on the "end_suffix" field. It's identical to EndSuffixEQ.
func EndSuffixEQ ¶
func EndSuffixEQ(v int64) predicate.AllowListItem
EndSuffixEQ applies the EQ predicate on the "end_suffix" field.
func EndSuffixGT ¶
func EndSuffixGT(v int64) predicate.AllowListItem
EndSuffixGT applies the GT predicate on the "end_suffix" field.
func EndSuffixGTE ¶
func EndSuffixGTE(v int64) predicate.AllowListItem
EndSuffixGTE applies the GTE predicate on the "end_suffix" field.
func EndSuffixIn ¶
func EndSuffixIn(vs ...int64) predicate.AllowListItem
EndSuffixIn applies the In predicate on the "end_suffix" field.
func EndSuffixIsNil ¶
func EndSuffixIsNil() predicate.AllowListItem
EndSuffixIsNil applies the IsNil predicate on the "end_suffix" field.
func EndSuffixLT ¶
func EndSuffixLT(v int64) predicate.AllowListItem
EndSuffixLT applies the LT predicate on the "end_suffix" field.
func EndSuffixLTE ¶
func EndSuffixLTE(v int64) predicate.AllowListItem
EndSuffixLTE applies the LTE predicate on the "end_suffix" field.
func EndSuffixNEQ ¶
func EndSuffixNEQ(v int64) predicate.AllowListItem
EndSuffixNEQ applies the NEQ predicate on the "end_suffix" field.
func EndSuffixNotIn ¶
func EndSuffixNotIn(vs ...int64) predicate.AllowListItem
EndSuffixNotIn applies the NotIn predicate on the "end_suffix" field.
func EndSuffixNotNil ¶
func EndSuffixNotNil() predicate.AllowListItem
EndSuffixNotNil applies the NotNil predicate on the "end_suffix" field.
func ExpiresAt ¶
func ExpiresAt(v time.Time) predicate.AllowListItem
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
func ExpiresAtEQ(v time.Time) predicate.AllowListItem
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
func ExpiresAtGT(v time.Time) predicate.AllowListItem
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
func ExpiresAtGTE(v time.Time) predicate.AllowListItem
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
func ExpiresAtIn(vs ...time.Time) predicate.AllowListItem
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtIsNil ¶
func ExpiresAtIsNil() predicate.AllowListItem
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
func ExpiresAtLT ¶
func ExpiresAtLT(v time.Time) predicate.AllowListItem
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
func ExpiresAtLTE(v time.Time) predicate.AllowListItem
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
func ExpiresAtNEQ(v time.Time) predicate.AllowListItem
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
func ExpiresAtNotIn(vs ...time.Time) predicate.AllowListItem
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func ExpiresAtNotNil ¶
func ExpiresAtNotNil() predicate.AllowListItem
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
func HasAllowlist ¶
func HasAllowlist() predicate.AllowListItem
HasAllowlist applies the HasEdge predicate on the "allowlist" edge.
func HasAllowlistWith ¶
func HasAllowlistWith(preds ...predicate.AllowList) predicate.AllowListItem
HasAllowlistWith applies the HasEdge predicate on the "allowlist" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.AllowListItem
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.AllowListItem
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.AllowListItem
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.AllowListItem
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.AllowListItem
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.AllowListItem
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.AllowListItem
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.AllowListItem
IDNotIn applies the NotIn predicate on the ID field.
func IPSize ¶
func IPSize(v int64) predicate.AllowListItem
IPSize applies equality check predicate on the "ip_size" field. It's identical to IPSizeEQ.
func IPSizeEQ ¶
func IPSizeEQ(v int64) predicate.AllowListItem
IPSizeEQ applies the EQ predicate on the "ip_size" field.
func IPSizeGT ¶
func IPSizeGT(v int64) predicate.AllowListItem
IPSizeGT applies the GT predicate on the "ip_size" field.
func IPSizeGTE ¶
func IPSizeGTE(v int64) predicate.AllowListItem
IPSizeGTE applies the GTE predicate on the "ip_size" field.
func IPSizeIn ¶
func IPSizeIn(vs ...int64) predicate.AllowListItem
IPSizeIn applies the In predicate on the "ip_size" field.
func IPSizeIsNil ¶
func IPSizeIsNil() predicate.AllowListItem
IPSizeIsNil applies the IsNil predicate on the "ip_size" field.
func IPSizeLT ¶
func IPSizeLT(v int64) predicate.AllowListItem
IPSizeLT applies the LT predicate on the "ip_size" field.
func IPSizeLTE ¶
func IPSizeLTE(v int64) predicate.AllowListItem
IPSizeLTE applies the LTE predicate on the "ip_size" field.
func IPSizeNEQ ¶
func IPSizeNEQ(v int64) predicate.AllowListItem
IPSizeNEQ applies the NEQ predicate on the "ip_size" field.
func IPSizeNotIn ¶
func IPSizeNotIn(vs ...int64) predicate.AllowListItem
IPSizeNotIn applies the NotIn predicate on the "ip_size" field.
func IPSizeNotNil ¶
func IPSizeNotNil() predicate.AllowListItem
IPSizeNotNil applies the NotNil predicate on the "ip_size" field.
func Not ¶
func Not(p predicate.AllowListItem) predicate.AllowListItem
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.AllowListItem) predicate.AllowListItem
Or groups predicates with the OR operator between them.
func StartIP ¶
func StartIP(v int64) predicate.AllowListItem
StartIP applies equality check predicate on the "start_ip" field. It's identical to StartIPEQ.
func StartIPEQ ¶
func StartIPEQ(v int64) predicate.AllowListItem
StartIPEQ applies the EQ predicate on the "start_ip" field.
func StartIPGT ¶
func StartIPGT(v int64) predicate.AllowListItem
StartIPGT applies the GT predicate on the "start_ip" field.
func StartIPGTE ¶
func StartIPGTE(v int64) predicate.AllowListItem
StartIPGTE applies the GTE predicate on the "start_ip" field.
func StartIPIn ¶
func StartIPIn(vs ...int64) predicate.AllowListItem
StartIPIn applies the In predicate on the "start_ip" field.
func StartIPIsNil ¶
func StartIPIsNil() predicate.AllowListItem
StartIPIsNil applies the IsNil predicate on the "start_ip" field.
func StartIPLT ¶
func StartIPLT(v int64) predicate.AllowListItem
StartIPLT applies the LT predicate on the "start_ip" field.
func StartIPLTE ¶
func StartIPLTE(v int64) predicate.AllowListItem
StartIPLTE applies the LTE predicate on the "start_ip" field.
func StartIPNEQ ¶
func StartIPNEQ(v int64) predicate.AllowListItem
StartIPNEQ applies the NEQ predicate on the "start_ip" field.
func StartIPNotIn ¶
func StartIPNotIn(vs ...int64) predicate.AllowListItem
StartIPNotIn applies the NotIn predicate on the "start_ip" field.
func StartIPNotNil ¶
func StartIPNotNil() predicate.AllowListItem
StartIPNotNil applies the NotNil predicate on the "start_ip" field.
func StartSuffix ¶
func StartSuffix(v int64) predicate.AllowListItem
StartSuffix applies equality check predicate on the "start_suffix" field. It's identical to StartSuffixEQ.
func StartSuffixEQ ¶
func StartSuffixEQ(v int64) predicate.AllowListItem
StartSuffixEQ applies the EQ predicate on the "start_suffix" field.
func StartSuffixGT ¶
func StartSuffixGT(v int64) predicate.AllowListItem
StartSuffixGT applies the GT predicate on the "start_suffix" field.
func StartSuffixGTE ¶
func StartSuffixGTE(v int64) predicate.AllowListItem
StartSuffixGTE applies the GTE predicate on the "start_suffix" field.
func StartSuffixIn ¶
func StartSuffixIn(vs ...int64) predicate.AllowListItem
StartSuffixIn applies the In predicate on the "start_suffix" field.
func StartSuffixIsNil ¶
func StartSuffixIsNil() predicate.AllowListItem
StartSuffixIsNil applies the IsNil predicate on the "start_suffix" field.
func StartSuffixLT ¶
func StartSuffixLT(v int64) predicate.AllowListItem
StartSuffixLT applies the LT predicate on the "start_suffix" field.
func StartSuffixLTE ¶
func StartSuffixLTE(v int64) predicate.AllowListItem
StartSuffixLTE applies the LTE predicate on the "start_suffix" field.
func StartSuffixNEQ ¶
func StartSuffixNEQ(v int64) predicate.AllowListItem
StartSuffixNEQ applies the NEQ predicate on the "start_suffix" field.
func StartSuffixNotIn ¶
func StartSuffixNotIn(vs ...int64) predicate.AllowListItem
StartSuffixNotIn applies the NotIn predicate on the "start_suffix" field.
func StartSuffixNotNil ¶
func StartSuffixNotNil() predicate.AllowListItem
StartSuffixNotNil applies the NotNil predicate on the "start_suffix" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.AllowListItem
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.AllowListItem
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.AllowListItem
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.AllowListItem
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.AllowListItem
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.AllowListItem
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.AllowListItem
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.AllowListItem
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.AllowListItem
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 Value ¶
func Value(v string) predicate.AllowListItem
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
func ValueContains(v string) predicate.AllowListItem
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
func ValueContainsFold(v string) predicate.AllowListItem
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEQ ¶
func ValueEQ(v string) predicate.AllowListItem
ValueEQ applies the EQ predicate on the "value" field.
func ValueEqualFold ¶
func ValueEqualFold(v string) predicate.AllowListItem
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueGT ¶
func ValueGT(v string) predicate.AllowListItem
ValueGT applies the GT predicate on the "value" field.
func ValueGTE ¶
func ValueGTE(v string) predicate.AllowListItem
ValueGTE applies the GTE predicate on the "value" field.
func ValueHasPrefix ¶
func ValueHasPrefix(v string) predicate.AllowListItem
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
func ValueHasSuffix(v string) predicate.AllowListItem
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueIn ¶
func ValueIn(vs ...string) predicate.AllowListItem
ValueIn applies the In predicate on the "value" field.
func ValueLT ¶
func ValueLT(v string) predicate.AllowListItem
ValueLT applies the LT predicate on the "value" field.
func ValueLTE ¶
func ValueLTE(v string) predicate.AllowListItem
ValueLTE applies the LTE predicate on the "value" field.
func ValueNEQ ¶
func ValueNEQ(v string) predicate.AllowListItem
ValueNEQ applies the NEQ predicate on the "value" field.
func ValueNotIn ¶
func ValueNotIn(vs ...string) predicate.AllowListItem
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the AllowListItem queries.
func ByAllowlist ¶
func ByAllowlist(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAllowlist orders the results by allowlist terms.
func ByAllowlistCount ¶
func ByAllowlistCount(opts ...sql.OrderTermOption) OrderOption
ByAllowlistCount orders the results by allowlist count.
func ByComment ¶
func ByComment(opts ...sql.OrderTermOption) OrderOption
ByComment orders the results by the comment field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEndIP ¶
func ByEndIP(opts ...sql.OrderTermOption) OrderOption
ByEndIP orders the results by the end_ip field.
func ByEndSuffix ¶
func ByEndSuffix(opts ...sql.OrderTermOption) OrderOption
ByEndSuffix orders the results by the end_suffix field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIPSize ¶
func ByIPSize(opts ...sql.OrderTermOption) OrderOption
ByIPSize orders the results by the ip_size field.
func ByStartIP ¶
func ByStartIP(opts ...sql.OrderTermOption) OrderOption
ByStartIP orders the results by the start_ip field.
func ByStartSuffix ¶
func ByStartSuffix(opts ...sql.OrderTermOption) OrderOption
ByStartSuffix orders the results by the start_suffix field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByValue ¶
func ByValue(opts ...sql.OrderTermOption) OrderOption
ByValue orders the results by the value field.