localbreach

package
v0.0.0-...-4d10510 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the localbreach type in the database.
	Label = "local_breach"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDate holds the string denoting the date field in the database.
	FieldDate = "date"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldIsVerified holds the string denoting the is_verified field in the database.
	FieldIsVerified = "is_verified"
	// FieldContainsPasswords holds the string denoting the contains_passwords field in the database.
	FieldContainsPasswords = "contains_passwords"
	// FieldContainsHashes holds the string denoting the contains_hashes field in the database.
	FieldContainsHashes = "contains_hashes"
	// FieldContainsEmails holds the string denoting the contains_emails field in the database.
	FieldContainsEmails = "contains_emails"
	// FieldContainsUsernames holds the string denoting the contains_usernames field in the database.
	FieldContainsUsernames = "contains_usernames"
	// FieldHashType holds the string denoting the hash_type field in the database.
	FieldHashType = "hash_type"
	// FieldHashSalted holds the string denoting the hash_salted field in the database.
	FieldHashSalted = "hash_salted"
	// FieldHashPeppered holds the string denoting the hash_peppered field in the database.
	FieldHashPeppered = "hash_peppered"
	// FieldData holds the string denoting the data field in the database.
	FieldData = "data"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeTrackedBreaches holds the string denoting the tracked_breaches edge name in mutations.
	EdgeTrackedBreaches = "tracked_breaches"
	// Table holds the table name of the localbreach in the database.
	Table = "local_breaches"
	// TrackedBreachesTable is the table that holds the tracked_breaches relation/edge. The primary key declared below.
	TrackedBreachesTable = "tracked_breaches_localbreach"
	// TrackedBreachesInverseTable is the table name for the TrackedBreaches entity.
	// It exists in this package in order to avoid circular dependency with the "trackedbreaches" package.
	TrackedBreachesInverseTable = "tracked_breaches"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultDate holds the default value on creation for the "date" field.
	DefaultDate time.Time
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for localbreach fields.

View Source
var (
	// TrackedBreachesPrimaryKey and TrackedBreachesColumn2 are the table columns denoting the
	// primary key for the tracked_breaches relation (M2M).
	TrackedBreachesPrimaryKey = []string{"tracked_breaches_id", "local_breach_id"}
)

Functions

func And

func And(predicates ...predicate.LocalBreach) predicate.LocalBreach

And groups predicates with the AND operator between them.

func ContainsEmails

func ContainsEmails(v bool) predicate.LocalBreach

ContainsEmails applies equality check predicate on the "contains_emails" field. It's identical to ContainsEmailsEQ.

func ContainsEmailsEQ

func ContainsEmailsEQ(v bool) predicate.LocalBreach

ContainsEmailsEQ applies the EQ predicate on the "contains_emails" field.

func ContainsEmailsNEQ

func ContainsEmailsNEQ(v bool) predicate.LocalBreach

ContainsEmailsNEQ applies the NEQ predicate on the "contains_emails" field.

func ContainsHashes

func ContainsHashes(v bool) predicate.LocalBreach

ContainsHashes applies equality check predicate on the "contains_hashes" field. It's identical to ContainsHashesEQ.

func ContainsHashesEQ

func ContainsHashesEQ(v bool) predicate.LocalBreach

ContainsHashesEQ applies the EQ predicate on the "contains_hashes" field.

func ContainsHashesNEQ

func ContainsHashesNEQ(v bool) predicate.LocalBreach

ContainsHashesNEQ applies the NEQ predicate on the "contains_hashes" field.

func ContainsPasswords

func ContainsPasswords(v bool) predicate.LocalBreach

ContainsPasswords applies equality check predicate on the "contains_passwords" field. It's identical to ContainsPasswordsEQ.

func ContainsPasswordsEQ

func ContainsPasswordsEQ(v bool) predicate.LocalBreach

ContainsPasswordsEQ applies the EQ predicate on the "contains_passwords" field.

func ContainsPasswordsNEQ

func ContainsPasswordsNEQ(v bool) predicate.LocalBreach

ContainsPasswordsNEQ applies the NEQ predicate on the "contains_passwords" field.

func ContainsUsernames

func ContainsUsernames(v bool) predicate.LocalBreach

ContainsUsernames applies equality check predicate on the "contains_usernames" field. It's identical to ContainsUsernamesEQ.

func ContainsUsernamesEQ

func ContainsUsernamesEQ(v bool) predicate.LocalBreach

ContainsUsernamesEQ applies the EQ predicate on the "contains_usernames" field.

func ContainsUsernamesNEQ

func ContainsUsernamesNEQ(v bool) predicate.LocalBreach

ContainsUsernamesNEQ applies the NEQ predicate on the "contains_usernames" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.LocalBreach

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.LocalBreach

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.LocalBreach

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.LocalBreach

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.LocalBreach

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.LocalBreach

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.LocalBreach

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.LocalBreach

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.LocalBreach

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DataIsNil

func DataIsNil() predicate.LocalBreach

DataIsNil applies the IsNil predicate on the "data" field.

func DataNotNil

func DataNotNil() predicate.LocalBreach

DataNotNil applies the NotNil predicate on the "data" field.

func Date

Date applies equality check predicate on the "date" field. It's identical to DateEQ.

func DateEQ

func DateEQ(v time.Time) predicate.LocalBreach

DateEQ applies the EQ predicate on the "date" field.

func DateGT

func DateGT(v time.Time) predicate.LocalBreach

DateGT applies the GT predicate on the "date" field.

func DateGTE

func DateGTE(v time.Time) predicate.LocalBreach

DateGTE applies the GTE predicate on the "date" field.

func DateIn

func DateIn(vs ...time.Time) predicate.LocalBreach

DateIn applies the In predicate on the "date" field.

func DateLT

func DateLT(v time.Time) predicate.LocalBreach

DateLT applies the LT predicate on the "date" field.

func DateLTE

func DateLTE(v time.Time) predicate.LocalBreach

DateLTE applies the LTE predicate on the "date" field.

func DateNEQ

func DateNEQ(v time.Time) predicate.LocalBreach

DateNEQ applies the NEQ predicate on the "date" field.

func DateNotIn

func DateNotIn(vs ...time.Time) predicate.LocalBreach

DateNotIn applies the NotIn predicate on the "date" field.

func Description

func Description(v string) predicate.LocalBreach

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.LocalBreach

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.LocalBreach

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.LocalBreach

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.LocalBreach

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.LocalBreach

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.LocalBreach

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.LocalBreach

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.LocalBreach

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.LocalBreach

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.LocalBreach

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.LocalBreach

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.LocalBreach

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.LocalBreach

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.LocalBreach

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.LocalBreach

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasTrackedBreaches

func HasTrackedBreaches() predicate.LocalBreach

HasTrackedBreaches applies the HasEdge predicate on the "tracked_breaches" edge.

func HasTrackedBreachesWith

func HasTrackedBreachesWith(preds ...predicate.TrackedBreaches) predicate.LocalBreach

HasTrackedBreachesWith applies the HasEdge predicate on the "tracked_breaches" edge with a given conditions (other predicates).

func HashPeppered

func HashPeppered(v bool) predicate.LocalBreach

HashPeppered applies equality check predicate on the "hash_peppered" field. It's identical to HashPepperedEQ.

func HashPepperedEQ

func HashPepperedEQ(v bool) predicate.LocalBreach

HashPepperedEQ applies the EQ predicate on the "hash_peppered" field.

func HashPepperedIsNil

func HashPepperedIsNil() predicate.LocalBreach

HashPepperedIsNil applies the IsNil predicate on the "hash_peppered" field.

func HashPepperedNEQ

func HashPepperedNEQ(v bool) predicate.LocalBreach

HashPepperedNEQ applies the NEQ predicate on the "hash_peppered" field.

func HashPepperedNotNil

func HashPepperedNotNil() predicate.LocalBreach

HashPepperedNotNil applies the NotNil predicate on the "hash_peppered" field.

func HashSalted

func HashSalted(v bool) predicate.LocalBreach

HashSalted applies equality check predicate on the "hash_salted" field. It's identical to HashSaltedEQ.

func HashSaltedEQ

func HashSaltedEQ(v bool) predicate.LocalBreach

HashSaltedEQ applies the EQ predicate on the "hash_salted" field.

func HashSaltedIsNil

func HashSaltedIsNil() predicate.LocalBreach

HashSaltedIsNil applies the IsNil predicate on the "hash_salted" field.

func HashSaltedNEQ

func HashSaltedNEQ(v bool) predicate.LocalBreach

HashSaltedNEQ applies the NEQ predicate on the "hash_salted" field.

func HashSaltedNotNil

func HashSaltedNotNil() predicate.LocalBreach

HashSaltedNotNil applies the NotNil predicate on the "hash_salted" field.

func HashType

func HashType(v string) predicate.LocalBreach

HashType applies equality check predicate on the "hash_type" field. It's identical to HashTypeEQ.

func HashTypeContains

func HashTypeContains(v string) predicate.LocalBreach

HashTypeContains applies the Contains predicate on the "hash_type" field.

func HashTypeContainsFold

func HashTypeContainsFold(v string) predicate.LocalBreach

HashTypeContainsFold applies the ContainsFold predicate on the "hash_type" field.

func HashTypeEQ

func HashTypeEQ(v string) predicate.LocalBreach

HashTypeEQ applies the EQ predicate on the "hash_type" field.

func HashTypeEqualFold

func HashTypeEqualFold(v string) predicate.LocalBreach

HashTypeEqualFold applies the EqualFold predicate on the "hash_type" field.

func HashTypeGT

func HashTypeGT(v string) predicate.LocalBreach

HashTypeGT applies the GT predicate on the "hash_type" field.

func HashTypeGTE

func HashTypeGTE(v string) predicate.LocalBreach

HashTypeGTE applies the GTE predicate on the "hash_type" field.

func HashTypeHasPrefix

func HashTypeHasPrefix(v string) predicate.LocalBreach

HashTypeHasPrefix applies the HasPrefix predicate on the "hash_type" field.

func HashTypeHasSuffix

func HashTypeHasSuffix(v string) predicate.LocalBreach

HashTypeHasSuffix applies the HasSuffix predicate on the "hash_type" field.

func HashTypeIn

func HashTypeIn(vs ...string) predicate.LocalBreach

HashTypeIn applies the In predicate on the "hash_type" field.

func HashTypeIsNil

func HashTypeIsNil() predicate.LocalBreach

HashTypeIsNil applies the IsNil predicate on the "hash_type" field.

func HashTypeLT

func HashTypeLT(v string) predicate.LocalBreach

HashTypeLT applies the LT predicate on the "hash_type" field.

func HashTypeLTE

func HashTypeLTE(v string) predicate.LocalBreach

HashTypeLTE applies the LTE predicate on the "hash_type" field.

func HashTypeNEQ

func HashTypeNEQ(v string) predicate.LocalBreach

HashTypeNEQ applies the NEQ predicate on the "hash_type" field.

func HashTypeNotIn

func HashTypeNotIn(vs ...string) predicate.LocalBreach

HashTypeNotIn applies the NotIn predicate on the "hash_type" field.

func HashTypeNotNil

func HashTypeNotNil() predicate.LocalBreach

HashTypeNotNil applies the NotNil predicate on the "hash_type" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.LocalBreach

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.LocalBreach

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.LocalBreach

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.LocalBreach

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.LocalBreach

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.LocalBreach

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.LocalBreach

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.LocalBreach

IDNotIn applies the NotIn predicate on the ID field.

func IsVerified

func IsVerified(v bool) predicate.LocalBreach

IsVerified applies equality check predicate on the "is_verified" field. It's identical to IsVerifiedEQ.

func IsVerifiedEQ

func IsVerifiedEQ(v bool) predicate.LocalBreach

IsVerifiedEQ applies the EQ predicate on the "is_verified" field.

func IsVerifiedNEQ

func IsVerifiedNEQ(v bool) predicate.LocalBreach

IsVerifiedNEQ applies the NEQ predicate on the "is_verified" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.LocalBreach

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.LocalBreach

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.LocalBreach

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.LocalBreach

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.LocalBreach

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.LocalBreach

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.LocalBreach

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.LocalBreach

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.LocalBreach

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.LocalBreach

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.LocalBreach

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.LocalBreach

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.LocalBreach

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.LocalBreach) predicate.LocalBreach

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the LocalBreach queries.

func ByContainsEmails

func ByContainsEmails(opts ...sql.OrderTermOption) OrderOption

ByContainsEmails orders the results by the contains_emails field.

func ByContainsHashes

func ByContainsHashes(opts ...sql.OrderTermOption) OrderOption

ByContainsHashes orders the results by the contains_hashes field.

func ByContainsPasswords

func ByContainsPasswords(opts ...sql.OrderTermOption) OrderOption

ByContainsPasswords orders the results by the contains_passwords field.

func ByContainsUsernames

func ByContainsUsernames(opts ...sql.OrderTermOption) OrderOption

ByContainsUsernames orders the results by the contains_usernames field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDate

func ByDate(opts ...sql.OrderTermOption) OrderOption

ByDate orders the results by the date field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByHashPeppered

func ByHashPeppered(opts ...sql.OrderTermOption) OrderOption

ByHashPeppered orders the results by the hash_peppered field.

func ByHashSalted

func ByHashSalted(opts ...sql.OrderTermOption) OrderOption

ByHashSalted orders the results by the hash_salted field.

func ByHashType

func ByHashType(opts ...sql.OrderTermOption) OrderOption

ByHashType orders the results by the hash_type field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIsVerified

func ByIsVerified(opts ...sql.OrderTermOption) OrderOption

ByIsVerified orders the results by the is_verified field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByTrackedBreaches

func ByTrackedBreaches(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTrackedBreaches orders the results by tracked_breaches terms.

func ByTrackedBreachesCount

func ByTrackedBreachesCount(opts ...sql.OrderTermOption) OrderOption

ByTrackedBreachesCount orders the results by tracked_breaches count.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL