hibp

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 hibp type in the database.
	Label = "hibp"
	// 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"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldDomain holds the string denoting the domain field in the database.
	FieldDomain = "domain"
	// FieldBreachDate holds the string denoting the breach_date field in the database.
	FieldBreachDate = "breach_date"
	// FieldAddedDate holds the string denoting the added_date field in the database.
	FieldAddedDate = "added_date"
	// FieldModifiedDate holds the string denoting the modified_date field in the database.
	FieldModifiedDate = "modified_date"
	// FieldPwnCount holds the string denoting the pwn_count field in the database.
	FieldPwnCount = "pwn_count"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldDataclasses holds the string denoting the dataclasses field in the database.
	FieldDataclasses = "dataclasses"
	// FieldIsVerified holds the string denoting the is_verified field in the database.
	FieldIsVerified = "is_verified"
	// FieldIsFabricated holds the string denoting the is_fabricated field in the database.
	FieldIsFabricated = "is_fabricated"
	// FieldIsSensitive holds the string denoting the is_sensitive field in the database.
	FieldIsSensitive = "is_sensitive"
	// FieldIsRetired holds the string denoting the is_retired field in the database.
	FieldIsRetired = "is_retired"
	// FieldIsSpamList holds the string denoting the is_spamlist field in the database.
	FieldIsSpamList = "is_spam_list"
	// FieldIsMalware holds the string denoting the is_malware field in the database.
	FieldIsMalware = "is_malware"
	// FieldLogoPath holds the string denoting the logo_path field in the database.
	FieldLogoPath = "logo_path"
	// EdgeTrackedBreaches holds the string denoting the tracked_breaches edge name in mutations.
	EdgeTrackedBreaches = "tracked_breaches"
	// Table holds the table name of the hibp in the database.
	Table = "hib_ps"
	// TrackedBreachesTable is the table that holds the tracked_breaches relation/edge.
	TrackedBreachesTable = "hib_ps"
	// 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"
	// TrackedBreachesColumn is the table column denoting the tracked_breaches relation/edge.
	TrackedBreachesColumn = "tracked_breaches_hibp"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultIsVerified holds the default value on creation for the "is_verified" field.
	DefaultIsVerified bool
	// DefaultIsFabricated holds the default value on creation for the "is_fabricated" field.
	DefaultIsFabricated bool
	// DefaultIsSensitive holds the default value on creation for the "is_sensitive" field.
	DefaultIsSensitive bool
	// DefaultIsRetired holds the default value on creation for the "is_retired" field.
	DefaultIsRetired bool
	// DefaultIsSpamList holds the default value on creation for the "is_spamList" field.
	DefaultIsSpamList bool
	// DefaultIsMalware holds the default value on creation for the "is_malware" field.
	DefaultIsMalware bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for hibp fields.

View Source
var ForeignKeys = []string{
	"tracked_breaches_hibp",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "hib_ps" table and are not defined as standalone fields in the schema.

Functions

func AddedDate

func AddedDate(v time.Time) predicate.HIBP

AddedDate applies equality check predicate on the "added_date" field. It's identical to AddedDateEQ.

func AddedDateEQ

func AddedDateEQ(v time.Time) predicate.HIBP

AddedDateEQ applies the EQ predicate on the "added_date" field.

func AddedDateGT

func AddedDateGT(v time.Time) predicate.HIBP

AddedDateGT applies the GT predicate on the "added_date" field.

func AddedDateGTE

func AddedDateGTE(v time.Time) predicate.HIBP

AddedDateGTE applies the GTE predicate on the "added_date" field.

func AddedDateIn

func AddedDateIn(vs ...time.Time) predicate.HIBP

AddedDateIn applies the In predicate on the "added_date" field.

func AddedDateLT

func AddedDateLT(v time.Time) predicate.HIBP

AddedDateLT applies the LT predicate on the "added_date" field.

func AddedDateLTE

func AddedDateLTE(v time.Time) predicate.HIBP

AddedDateLTE applies the LTE predicate on the "added_date" field.

func AddedDateNEQ

func AddedDateNEQ(v time.Time) predicate.HIBP

AddedDateNEQ applies the NEQ predicate on the "added_date" field.

func AddedDateNotIn

func AddedDateNotIn(vs ...time.Time) predicate.HIBP

AddedDateNotIn applies the NotIn predicate on the "added_date" field.

func And

func And(predicates ...predicate.HIBP) predicate.HIBP

And groups predicates with the AND operator between them.

func BreachDate

func BreachDate(v string) predicate.HIBP

BreachDate applies equality check predicate on the "breach_date" field. It's identical to BreachDateEQ.

func BreachDateContains

func BreachDateContains(v string) predicate.HIBP

BreachDateContains applies the Contains predicate on the "breach_date" field.

func BreachDateContainsFold

func BreachDateContainsFold(v string) predicate.HIBP

BreachDateContainsFold applies the ContainsFold predicate on the "breach_date" field.

func BreachDateEQ

func BreachDateEQ(v string) predicate.HIBP

BreachDateEQ applies the EQ predicate on the "breach_date" field.

func BreachDateEqualFold

func BreachDateEqualFold(v string) predicate.HIBP

BreachDateEqualFold applies the EqualFold predicate on the "breach_date" field.

func BreachDateGT

func BreachDateGT(v string) predicate.HIBP

BreachDateGT applies the GT predicate on the "breach_date" field.

func BreachDateGTE

func BreachDateGTE(v string) predicate.HIBP

BreachDateGTE applies the GTE predicate on the "breach_date" field.

func BreachDateHasPrefix

func BreachDateHasPrefix(v string) predicate.HIBP

BreachDateHasPrefix applies the HasPrefix predicate on the "breach_date" field.

func BreachDateHasSuffix

func BreachDateHasSuffix(v string) predicate.HIBP

BreachDateHasSuffix applies the HasSuffix predicate on the "breach_date" field.

func BreachDateIn

func BreachDateIn(vs ...string) predicate.HIBP

BreachDateIn applies the In predicate on the "breach_date" field.

func BreachDateLT

func BreachDateLT(v string) predicate.HIBP

BreachDateLT applies the LT predicate on the "breach_date" field.

func BreachDateLTE

func BreachDateLTE(v string) predicate.HIBP

BreachDateLTE applies the LTE predicate on the "breach_date" field.

func BreachDateNEQ

func BreachDateNEQ(v string) predicate.HIBP

BreachDateNEQ applies the NEQ predicate on the "breach_date" field.

func BreachDateNotIn

func BreachDateNotIn(vs ...string) predicate.HIBP

BreachDateNotIn applies the NotIn predicate on the "breach_date" field.

func Description

func Description(v string) predicate.HIBP

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

func DescriptionContains

func DescriptionContains(v string) predicate.HIBP

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.HIBP

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.HIBP

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.HIBP

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

func DescriptionGT

func DescriptionGT(v string) predicate.HIBP

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.HIBP

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.HIBP

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.HIBP

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.HIBP

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

func DescriptionLT

func DescriptionLT(v string) predicate.HIBP

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.HIBP

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.HIBP

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.HIBP

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

func Domain

func Domain(v string) predicate.HIBP

Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.

func DomainContains

func DomainContains(v string) predicate.HIBP

DomainContains applies the Contains predicate on the "domain" field.

func DomainContainsFold

func DomainContainsFold(v string) predicate.HIBP

DomainContainsFold applies the ContainsFold predicate on the "domain" field.

func DomainEQ

func DomainEQ(v string) predicate.HIBP

DomainEQ applies the EQ predicate on the "domain" field.

func DomainEqualFold

func DomainEqualFold(v string) predicate.HIBP

DomainEqualFold applies the EqualFold predicate on the "domain" field.

func DomainGT

func DomainGT(v string) predicate.HIBP

DomainGT applies the GT predicate on the "domain" field.

func DomainGTE

func DomainGTE(v string) predicate.HIBP

DomainGTE applies the GTE predicate on the "domain" field.

func DomainHasPrefix

func DomainHasPrefix(v string) predicate.HIBP

DomainHasPrefix applies the HasPrefix predicate on the "domain" field.

func DomainHasSuffix

func DomainHasSuffix(v string) predicate.HIBP

DomainHasSuffix applies the HasSuffix predicate on the "domain" field.

func DomainIn

func DomainIn(vs ...string) predicate.HIBP

DomainIn applies the In predicate on the "domain" field.

func DomainLT

func DomainLT(v string) predicate.HIBP

DomainLT applies the LT predicate on the "domain" field.

func DomainLTE

func DomainLTE(v string) predicate.HIBP

DomainLTE applies the LTE predicate on the "domain" field.

func DomainNEQ

func DomainNEQ(v string) predicate.HIBP

DomainNEQ applies the NEQ predicate on the "domain" field.

func DomainNotIn

func DomainNotIn(vs ...string) predicate.HIBP

DomainNotIn applies the NotIn predicate on the "domain" field.

func HasTrackedBreaches

func HasTrackedBreaches() predicate.HIBP

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

func HasTrackedBreachesWith

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

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

func ID

func ID(id uuid.UUID) predicate.HIBP

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.HIBP

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.HIBP

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.HIBP

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.HIBP

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.HIBP

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.HIBP

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsFabricated

func IsFabricated(v bool) predicate.HIBP

IsFabricated applies equality check predicate on the "is_fabricated" field. It's identical to IsFabricatedEQ.

func IsFabricatedEQ

func IsFabricatedEQ(v bool) predicate.HIBP

IsFabricatedEQ applies the EQ predicate on the "is_fabricated" field.

func IsFabricatedNEQ

func IsFabricatedNEQ(v bool) predicate.HIBP

IsFabricatedNEQ applies the NEQ predicate on the "is_fabricated" field.

func IsMalware

func IsMalware(v bool) predicate.HIBP

IsMalware applies equality check predicate on the "is_malware" field. It's identical to IsMalwareEQ.

func IsMalwareEQ

func IsMalwareEQ(v bool) predicate.HIBP

IsMalwareEQ applies the EQ predicate on the "is_malware" field.

func IsMalwareNEQ

func IsMalwareNEQ(v bool) predicate.HIBP

IsMalwareNEQ applies the NEQ predicate on the "is_malware" field.

func IsRetired

func IsRetired(v bool) predicate.HIBP

IsRetired applies equality check predicate on the "is_retired" field. It's identical to IsRetiredEQ.

func IsRetiredEQ

func IsRetiredEQ(v bool) predicate.HIBP

IsRetiredEQ applies the EQ predicate on the "is_retired" field.

func IsRetiredNEQ

func IsRetiredNEQ(v bool) predicate.HIBP

IsRetiredNEQ applies the NEQ predicate on the "is_retired" field.

func IsSensitive

func IsSensitive(v bool) predicate.HIBP

IsSensitive applies equality check predicate on the "is_sensitive" field. It's identical to IsSensitiveEQ.

func IsSensitiveEQ

func IsSensitiveEQ(v bool) predicate.HIBP

IsSensitiveEQ applies the EQ predicate on the "is_sensitive" field.

func IsSensitiveNEQ

func IsSensitiveNEQ(v bool) predicate.HIBP

IsSensitiveNEQ applies the NEQ predicate on the "is_sensitive" field.

func IsSpamList

func IsSpamList(v bool) predicate.HIBP

IsSpamList applies equality check predicate on the "is_spamList" field. It's identical to IsSpamListEQ.

func IsSpamListEQ

func IsSpamListEQ(v bool) predicate.HIBP

IsSpamListEQ applies the EQ predicate on the "is_spamList" field.

func IsSpamListNEQ

func IsSpamListNEQ(v bool) predicate.HIBP

IsSpamListNEQ applies the NEQ predicate on the "is_spamList" field.

func IsVerified

func IsVerified(v bool) predicate.HIBP

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

func IsVerifiedEQ

func IsVerifiedEQ(v bool) predicate.HIBP

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

func IsVerifiedNEQ

func IsVerifiedNEQ(v bool) predicate.HIBP

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

func LogoPath

func LogoPath(v string) predicate.HIBP

LogoPath applies equality check predicate on the "logo_path" field. It's identical to LogoPathEQ.

func LogoPathContains

func LogoPathContains(v string) predicate.HIBP

LogoPathContains applies the Contains predicate on the "logo_path" field.

func LogoPathContainsFold

func LogoPathContainsFold(v string) predicate.HIBP

LogoPathContainsFold applies the ContainsFold predicate on the "logo_path" field.

func LogoPathEQ

func LogoPathEQ(v string) predicate.HIBP

LogoPathEQ applies the EQ predicate on the "logo_path" field.

func LogoPathEqualFold

func LogoPathEqualFold(v string) predicate.HIBP

LogoPathEqualFold applies the EqualFold predicate on the "logo_path" field.

func LogoPathGT

func LogoPathGT(v string) predicate.HIBP

LogoPathGT applies the GT predicate on the "logo_path" field.

func LogoPathGTE

func LogoPathGTE(v string) predicate.HIBP

LogoPathGTE applies the GTE predicate on the "logo_path" field.

func LogoPathHasPrefix

func LogoPathHasPrefix(v string) predicate.HIBP

LogoPathHasPrefix applies the HasPrefix predicate on the "logo_path" field.

func LogoPathHasSuffix

func LogoPathHasSuffix(v string) predicate.HIBP

LogoPathHasSuffix applies the HasSuffix predicate on the "logo_path" field.

func LogoPathIn

func LogoPathIn(vs ...string) predicate.HIBP

LogoPathIn applies the In predicate on the "logo_path" field.

func LogoPathIsNil

func LogoPathIsNil() predicate.HIBP

LogoPathIsNil applies the IsNil predicate on the "logo_path" field.

func LogoPathLT

func LogoPathLT(v string) predicate.HIBP

LogoPathLT applies the LT predicate on the "logo_path" field.

func LogoPathLTE

func LogoPathLTE(v string) predicate.HIBP

LogoPathLTE applies the LTE predicate on the "logo_path" field.

func LogoPathNEQ

func LogoPathNEQ(v string) predicate.HIBP

LogoPathNEQ applies the NEQ predicate on the "logo_path" field.

func LogoPathNotIn

func LogoPathNotIn(vs ...string) predicate.HIBP

LogoPathNotIn applies the NotIn predicate on the "logo_path" field.

func LogoPathNotNil

func LogoPathNotNil() predicate.HIBP

LogoPathNotNil applies the NotNil predicate on the "logo_path" field.

func ModifiedDate

func ModifiedDate(v time.Time) predicate.HIBP

ModifiedDate applies equality check predicate on the "modified_date" field. It's identical to ModifiedDateEQ.

func ModifiedDateEQ

func ModifiedDateEQ(v time.Time) predicate.HIBP

ModifiedDateEQ applies the EQ predicate on the "modified_date" field.

func ModifiedDateGT

func ModifiedDateGT(v time.Time) predicate.HIBP

ModifiedDateGT applies the GT predicate on the "modified_date" field.

func ModifiedDateGTE

func ModifiedDateGTE(v time.Time) predicate.HIBP

ModifiedDateGTE applies the GTE predicate on the "modified_date" field.

func ModifiedDateIn

func ModifiedDateIn(vs ...time.Time) predicate.HIBP

ModifiedDateIn applies the In predicate on the "modified_date" field.

func ModifiedDateLT

func ModifiedDateLT(v time.Time) predicate.HIBP

ModifiedDateLT applies the LT predicate on the "modified_date" field.

func ModifiedDateLTE

func ModifiedDateLTE(v time.Time) predicate.HIBP

ModifiedDateLTE applies the LTE predicate on the "modified_date" field.

func ModifiedDateNEQ

func ModifiedDateNEQ(v time.Time) predicate.HIBP

ModifiedDateNEQ applies the NEQ predicate on the "modified_date" field.

func ModifiedDateNotIn

func ModifiedDateNotIn(vs ...time.Time) predicate.HIBP

ModifiedDateNotIn applies the NotIn predicate on the "modified_date" field.

func Name

func Name(v string) predicate.HIBP

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

func NameContains

func NameContains(v string) predicate.HIBP

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

func NameContainsFold

func NameContainsFold(v string) predicate.HIBP

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

func NameEQ

func NameEQ(v string) predicate.HIBP

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

func NameEqualFold

func NameEqualFold(v string) predicate.HIBP

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

func NameGT

func NameGT(v string) predicate.HIBP

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

func NameGTE

func NameGTE(v string) predicate.HIBP

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.HIBP

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.HIBP

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.HIBP

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

func NameLTE

func NameLTE(v string) predicate.HIBP

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

func NameNEQ

func NameNEQ(v string) predicate.HIBP

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

func NameNotIn

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

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.HIBP) predicate.HIBP

Or groups predicates with the OR operator between them.

func PwnCount

func PwnCount(v int) predicate.HIBP

PwnCount applies equality check predicate on the "pwn_count" field. It's identical to PwnCountEQ.

func PwnCountEQ

func PwnCountEQ(v int) predicate.HIBP

PwnCountEQ applies the EQ predicate on the "pwn_count" field.

func PwnCountGT

func PwnCountGT(v int) predicate.HIBP

PwnCountGT applies the GT predicate on the "pwn_count" field.

func PwnCountGTE

func PwnCountGTE(v int) predicate.HIBP

PwnCountGTE applies the GTE predicate on the "pwn_count" field.

func PwnCountIn

func PwnCountIn(vs ...int) predicate.HIBP

PwnCountIn applies the In predicate on the "pwn_count" field.

func PwnCountLT

func PwnCountLT(v int) predicate.HIBP

PwnCountLT applies the LT predicate on the "pwn_count" field.

func PwnCountLTE

func PwnCountLTE(v int) predicate.HIBP

PwnCountLTE applies the LTE predicate on the "pwn_count" field.

func PwnCountNEQ

func PwnCountNEQ(v int) predicate.HIBP

PwnCountNEQ applies the NEQ predicate on the "pwn_count" field.

func PwnCountNotIn

func PwnCountNotIn(vs ...int) predicate.HIBP

PwnCountNotIn applies the NotIn predicate on the "pwn_count" field.

func Title

func Title(v string) predicate.HIBP

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.HIBP

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.HIBP

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.HIBP

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.HIBP

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.HIBP

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.HIBP

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.HIBP

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.HIBP

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.HIBP

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.HIBP

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.HIBP

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.HIBP

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.HIBP

TitleNotIn applies the NotIn predicate on the "title" field.

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 HIBP queries.

func ByAddedDate

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

ByAddedDate orders the results by the added_date field.

func ByBreachDate

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

ByBreachDate orders the results by the breach_date field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByDomain

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

ByDomain orders the results by the domain field.

func ByID

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

ByID orders the results by the id field.

func ByIsFabricated

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

ByIsFabricated orders the results by the is_fabricated field.

func ByIsMalware

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

ByIsMalware orders the results by the is_malware field.

func ByIsRetired

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

ByIsRetired orders the results by the is_retired field.

func ByIsSensitive

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

ByIsSensitive orders the results by the is_sensitive field.

func ByIsSpamList

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

ByIsSpamList orders the results by the is_spamList field.

func ByIsVerified

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

ByIsVerified orders the results by the is_verified field.

func ByLogoPath

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

ByLogoPath orders the results by the logo_path field.

func ByModifiedDate

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

ByModifiedDate orders the results by the modified_date field.

func ByName

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

ByName orders the results by the name field.

func ByPwnCount

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

ByPwnCount orders the results by the pwn_count field.

func ByTitle

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

ByTitle orders the results by the title field.

func ByTrackedBreachesField

func ByTrackedBreachesField(field string, opts ...sql.OrderTermOption) OrderOption

ByTrackedBreachesField orders the results by tracked_breaches field.

Jump to

Keyboard shortcuts

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