Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TrackedBreaches) predicate.TrackedBreaches
- func Breach(v uuid.UUID) predicate.TrackedBreaches
- func BreachEQ(v uuid.UUID) predicate.TrackedBreaches
- func BreachGT(v uuid.UUID) predicate.TrackedBreaches
- func BreachGTE(v uuid.UUID) predicate.TrackedBreaches
- func BreachIn(vs ...uuid.UUID) predicate.TrackedBreaches
- func BreachLT(v uuid.UUID) predicate.TrackedBreaches
- func BreachLTE(v uuid.UUID) predicate.TrackedBreaches
- func BreachNEQ(v uuid.UUID) predicate.TrackedBreaches
- func BreachNotIn(vs ...uuid.UUID) predicate.TrackedBreaches
- func HasHibp() predicate.TrackedBreaches
- func HasHibpWith(preds ...predicate.HIBP) predicate.TrackedBreaches
- func HasLocalbreach() predicate.TrackedBreaches
- func HasLocalbreachWith(preds ...predicate.LocalBreach) predicate.TrackedBreaches
- func HasUser() predicate.TrackedBreaches
- func HasUserWith(preds ...predicate.User) predicate.TrackedBreaches
- func ID(id uuid.UUID) predicate.TrackedBreaches
- func IDEQ(id uuid.UUID) predicate.TrackedBreaches
- func IDGT(id uuid.UUID) predicate.TrackedBreaches
- func IDGTE(id uuid.UUID) predicate.TrackedBreaches
- func IDIn(ids ...uuid.UUID) predicate.TrackedBreaches
- func IDLT(id uuid.UUID) predicate.TrackedBreaches
- func IDLTE(id uuid.UUID) predicate.TrackedBreaches
- func IDNEQ(id uuid.UUID) predicate.TrackedBreaches
- func IDNotIn(ids ...uuid.UUID) predicate.TrackedBreaches
- func Not(p predicate.TrackedBreaches) predicate.TrackedBreaches
- func Online(v bool) predicate.TrackedBreaches
- func OnlineEQ(v bool) predicate.TrackedBreaches
- func OnlineNEQ(v bool) predicate.TrackedBreaches
- func Or(predicates ...predicate.TrackedBreaches) predicate.TrackedBreaches
- func Owner(v uuid.UUID) predicate.TrackedBreaches
- func OwnerEQ(v uuid.UUID) predicate.TrackedBreaches
- func OwnerIn(vs ...uuid.UUID) predicate.TrackedBreaches
- func OwnerNEQ(v uuid.UUID) predicate.TrackedBreaches
- func OwnerNotIn(vs ...uuid.UUID) predicate.TrackedBreaches
- func ValidColumn(column string) bool
- type OrderOption
- func ByBreach(opts ...sql.OrderTermOption) OrderOption
- func ByHibp(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByHibpCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLocalbreach(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLocalbreachCount(opts ...sql.OrderTermOption) OrderOption
- func ByOnline(opts ...sql.OrderTermOption) OrderOption
- func ByOwner(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the trackedbreaches type in the database. Label = "tracked_breaches" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldBreach holds the string denoting the breach field in the database. FieldBreach = "breach" // FieldOnline holds the string denoting the online field in the database. FieldOnline = "online" // FieldOwner holds the string denoting the owner field in the database. FieldOwner = "owner" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeLocalbreach holds the string denoting the localbreach edge name in mutations. EdgeLocalbreach = "localbreach" // EdgeHibp holds the string denoting the hibp edge name in mutations. EdgeHibp = "hibp" // Table holds the table name of the trackedbreaches in the database. Table = "tracked_breaches" // UserTable is the table that holds the user relation/edge. UserTable = "tracked_breaches" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "owner" // LocalbreachTable is the table that holds the localbreach relation/edge. The primary key declared below. LocalbreachTable = "tracked_breaches_localbreach" // LocalbreachInverseTable is the table name for the LocalBreach entity. // It exists in this package in order to avoid circular dependency with the "localbreach" package. LocalbreachInverseTable = "local_breaches" // HibpTable is the table that holds the hibp relation/edge. HibpTable = "hib_ps" // HibpInverseTable is the table name for the HIBP entity. // It exists in this package in order to avoid circular dependency with the "hibp" package. HibpInverseTable = "hib_ps" // HibpColumn is the table column denoting the hibp relation/edge. HibpColumn = "tracked_breaches_hibp" )
Variables ¶
var ( // DefaultOnline holds the default value on creation for the "online" field. DefaultOnline bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldBreach, FieldOnline, FieldOwner, }
Columns holds all SQL columns for trackedbreaches fields.
var ( // LocalbreachPrimaryKey and LocalbreachColumn2 are the table columns denoting the // primary key for the localbreach relation (M2M). LocalbreachPrimaryKey = []string{"tracked_breaches_id", "local_breach_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.TrackedBreaches) predicate.TrackedBreaches
And groups predicates with the AND operator between them.
func Breach ¶
func Breach(v uuid.UUID) predicate.TrackedBreaches
Breach applies equality check predicate on the "breach" field. It's identical to BreachEQ.
func BreachEQ ¶
func BreachEQ(v uuid.UUID) predicate.TrackedBreaches
BreachEQ applies the EQ predicate on the "breach" field.
func BreachGT ¶
func BreachGT(v uuid.UUID) predicate.TrackedBreaches
BreachGT applies the GT predicate on the "breach" field.
func BreachGTE ¶
func BreachGTE(v uuid.UUID) predicate.TrackedBreaches
BreachGTE applies the GTE predicate on the "breach" field.
func BreachIn ¶
func BreachIn(vs ...uuid.UUID) predicate.TrackedBreaches
BreachIn applies the In predicate on the "breach" field.
func BreachLT ¶
func BreachLT(v uuid.UUID) predicate.TrackedBreaches
BreachLT applies the LT predicate on the "breach" field.
func BreachLTE ¶
func BreachLTE(v uuid.UUID) predicate.TrackedBreaches
BreachLTE applies the LTE predicate on the "breach" field.
func BreachNEQ ¶
func BreachNEQ(v uuid.UUID) predicate.TrackedBreaches
BreachNEQ applies the NEQ predicate on the "breach" field.
func BreachNotIn ¶
func BreachNotIn(vs ...uuid.UUID) predicate.TrackedBreaches
BreachNotIn applies the NotIn predicate on the "breach" field.
func HasHibp ¶
func HasHibp() predicate.TrackedBreaches
HasHibp applies the HasEdge predicate on the "hibp" edge.
func HasHibpWith ¶
func HasHibpWith(preds ...predicate.HIBP) predicate.TrackedBreaches
HasHibpWith applies the HasEdge predicate on the "hibp" edge with a given conditions (other predicates).
func HasLocalbreach ¶
func HasLocalbreach() predicate.TrackedBreaches
HasLocalbreach applies the HasEdge predicate on the "localbreach" edge.
func HasLocalbreachWith ¶
func HasLocalbreachWith(preds ...predicate.LocalBreach) predicate.TrackedBreaches
HasLocalbreachWith applies the HasEdge predicate on the "localbreach" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.TrackedBreaches
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.TrackedBreaches
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.TrackedBreaches
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.TrackedBreaches
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.TrackedBreaches
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.TrackedBreaches
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.TrackedBreaches
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.TrackedBreaches
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.TrackedBreaches
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.TrackedBreaches
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.TrackedBreaches
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.TrackedBreaches) predicate.TrackedBreaches
Not applies the not operator on the given predicate.
func Online ¶
func Online(v bool) predicate.TrackedBreaches
Online applies equality check predicate on the "online" field. It's identical to OnlineEQ.
func OnlineEQ ¶
func OnlineEQ(v bool) predicate.TrackedBreaches
OnlineEQ applies the EQ predicate on the "online" field.
func OnlineNEQ ¶
func OnlineNEQ(v bool) predicate.TrackedBreaches
OnlineNEQ applies the NEQ predicate on the "online" field.
func Or ¶
func Or(predicates ...predicate.TrackedBreaches) predicate.TrackedBreaches
Or groups predicates with the OR operator between them.
func Owner ¶
func Owner(v uuid.UUID) predicate.TrackedBreaches
Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.
func OwnerEQ ¶
func OwnerEQ(v uuid.UUID) predicate.TrackedBreaches
OwnerEQ applies the EQ predicate on the "owner" field.
func OwnerIn ¶
func OwnerIn(vs ...uuid.UUID) predicate.TrackedBreaches
OwnerIn applies the In predicate on the "owner" field.
func OwnerNEQ ¶
func OwnerNEQ(v uuid.UUID) predicate.TrackedBreaches
OwnerNEQ applies the NEQ predicate on the "owner" field.
func OwnerNotIn ¶
func OwnerNotIn(vs ...uuid.UUID) predicate.TrackedBreaches
OwnerNotIn applies the NotIn predicate on the "owner" field.
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 TrackedBreaches queries.
func ByBreach ¶
func ByBreach(opts ...sql.OrderTermOption) OrderOption
ByBreach orders the results by the breach field.
func ByHibp ¶
func ByHibp(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByHibp orders the results by hibp terms.
func ByHibpCount ¶
func ByHibpCount(opts ...sql.OrderTermOption) OrderOption
ByHibpCount orders the results by hibp count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLocalbreach ¶
func ByLocalbreach(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByLocalbreach orders the results by localbreach terms.
func ByLocalbreachCount ¶
func ByLocalbreachCount(opts ...sql.OrderTermOption) OrderOption
ByLocalbreachCount orders the results by localbreach count.
func ByOnline ¶
func ByOnline(opts ...sql.OrderTermOption) OrderOption
ByOnline orders the results by the online field.
func ByOwner ¶
func ByOwner(opts ...sql.OrderTermOption) OrderOption
ByOwner orders the results by the owner field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.