bouncer

package
v1.3.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the bouncer type in the database.
	Label = "bouncer"
	// 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldAPIKey holds the string denoting the api_key field in the database.
	FieldAPIKey = "api_key"
	// FieldRevoked holds the string denoting the revoked field in the database.
	FieldRevoked = "revoked"
	// FieldIPAddress holds the string denoting the ip_address field in the database.
	FieldIPAddress = "ip_address"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldUntil holds the string denoting the until field in the database.
	FieldUntil = "until"
	// FieldLastPull holds the string denoting the last_pull field in the database.
	FieldLastPull = "last_pull"
	// Table holds the table name of the bouncer in the database.
	Table = "bouncers"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// UpdateDefaultCreatedAt holds the default value on update for the "created_at" field.
	UpdateDefaultCreatedAt 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
	// DefaultIPAddress holds the default value on creation for the "ip_address" field.
	DefaultIPAddress string
	// DefaultUntil holds the default value on creation for the "until" field.
	DefaultUntil func() time.Time
	// DefaultLastPull holds the default value on creation for the "last_pull" field.
	DefaultLastPull func() time.Time
)

Columns holds all SQL columns for bouncer fields.

Functions

func APIKey

func APIKey(v string) predicate.Bouncer

APIKey applies equality check predicate on the "api_key" field. It's identical to APIKeyEQ.

func APIKeyContains

func APIKeyContains(v string) predicate.Bouncer

APIKeyContains applies the Contains predicate on the "api_key" field.

func APIKeyContainsFold

func APIKeyContainsFold(v string) predicate.Bouncer

APIKeyContainsFold applies the ContainsFold predicate on the "api_key" field.

func APIKeyEQ

func APIKeyEQ(v string) predicate.Bouncer

APIKeyEQ applies the EQ predicate on the "api_key" field.

func APIKeyEqualFold

func APIKeyEqualFold(v string) predicate.Bouncer

APIKeyEqualFold applies the EqualFold predicate on the "api_key" field.

func APIKeyGT

func APIKeyGT(v string) predicate.Bouncer

APIKeyGT applies the GT predicate on the "api_key" field.

func APIKeyGTE

func APIKeyGTE(v string) predicate.Bouncer

APIKeyGTE applies the GTE predicate on the "api_key" field.

func APIKeyHasPrefix

func APIKeyHasPrefix(v string) predicate.Bouncer

APIKeyHasPrefix applies the HasPrefix predicate on the "api_key" field.

func APIKeyHasSuffix

func APIKeyHasSuffix(v string) predicate.Bouncer

APIKeyHasSuffix applies the HasSuffix predicate on the "api_key" field.

func APIKeyIn

func APIKeyIn(vs ...string) predicate.Bouncer

APIKeyIn applies the In predicate on the "api_key" field.

func APIKeyLT

func APIKeyLT(v string) predicate.Bouncer

APIKeyLT applies the LT predicate on the "api_key" field.

func APIKeyLTE

func APIKeyLTE(v string) predicate.Bouncer

APIKeyLTE applies the LTE predicate on the "api_key" field.

func APIKeyNEQ

func APIKeyNEQ(v string) predicate.Bouncer

APIKeyNEQ applies the NEQ predicate on the "api_key" field.

func APIKeyNotIn

func APIKeyNotIn(vs ...string) predicate.Bouncer

APIKeyNotIn applies the NotIn predicate on the "api_key" field.

func And

func And(predicates ...predicate.Bouncer) predicate.Bouncer

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Bouncer

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Bouncer

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Bouncer

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Bouncer

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

func CreatedAtIn

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

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

func CreatedAtIsNil added in v1.3.0

func CreatedAtIsNil() predicate.Bouncer

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Bouncer

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Bouncer

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Bouncer

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil added in v1.3.0

func CreatedAtNotNil() predicate.Bouncer

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func ID

func ID(id int) predicate.Bouncer

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Bouncer

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Bouncer

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Bouncer

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Bouncer

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Bouncer

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Bouncer

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Bouncer

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Bouncer

IDNotIn applies the NotIn predicate on the ID field.

func IPAddress

func IPAddress(v string) predicate.Bouncer

IPAddress applies equality check predicate on the "ip_address" field. It's identical to IPAddressEQ.

func IPAddressContains

func IPAddressContains(v string) predicate.Bouncer

IPAddressContains applies the Contains predicate on the "ip_address" field.

func IPAddressContainsFold

func IPAddressContainsFold(v string) predicate.Bouncer

IPAddressContainsFold applies the ContainsFold predicate on the "ip_address" field.

func IPAddressEQ

func IPAddressEQ(v string) predicate.Bouncer

IPAddressEQ applies the EQ predicate on the "ip_address" field.

func IPAddressEqualFold

func IPAddressEqualFold(v string) predicate.Bouncer

IPAddressEqualFold applies the EqualFold predicate on the "ip_address" field.

func IPAddressGT

func IPAddressGT(v string) predicate.Bouncer

IPAddressGT applies the GT predicate on the "ip_address" field.

func IPAddressGTE

func IPAddressGTE(v string) predicate.Bouncer

IPAddressGTE applies the GTE predicate on the "ip_address" field.

func IPAddressHasPrefix

func IPAddressHasPrefix(v string) predicate.Bouncer

IPAddressHasPrefix applies the HasPrefix predicate on the "ip_address" field.

func IPAddressHasSuffix

func IPAddressHasSuffix(v string) predicate.Bouncer

IPAddressHasSuffix applies the HasSuffix predicate on the "ip_address" field.

func IPAddressIn

func IPAddressIn(vs ...string) predicate.Bouncer

IPAddressIn applies the In predicate on the "ip_address" field.

func IPAddressIsNil

func IPAddressIsNil() predicate.Bouncer

IPAddressIsNil applies the IsNil predicate on the "ip_address" field.

func IPAddressLT

func IPAddressLT(v string) predicate.Bouncer

IPAddressLT applies the LT predicate on the "ip_address" field.

func IPAddressLTE

func IPAddressLTE(v string) predicate.Bouncer

IPAddressLTE applies the LTE predicate on the "ip_address" field.

func IPAddressNEQ

func IPAddressNEQ(v string) predicate.Bouncer

IPAddressNEQ applies the NEQ predicate on the "ip_address" field.

func IPAddressNotIn

func IPAddressNotIn(vs ...string) predicate.Bouncer

IPAddressNotIn applies the NotIn predicate on the "ip_address" field.

func IPAddressNotNil

func IPAddressNotNil() predicate.Bouncer

IPAddressNotNil applies the NotNil predicate on the "ip_address" field.

func LastPull

func LastPull(v time.Time) predicate.Bouncer

LastPull applies equality check predicate on the "last_pull" field. It's identical to LastPullEQ.

func LastPullEQ

func LastPullEQ(v time.Time) predicate.Bouncer

LastPullEQ applies the EQ predicate on the "last_pull" field.

func LastPullGT

func LastPullGT(v time.Time) predicate.Bouncer

LastPullGT applies the GT predicate on the "last_pull" field.

func LastPullGTE

func LastPullGTE(v time.Time) predicate.Bouncer

LastPullGTE applies the GTE predicate on the "last_pull" field.

func LastPullIn

func LastPullIn(vs ...time.Time) predicate.Bouncer

LastPullIn applies the In predicate on the "last_pull" field.

func LastPullLT

func LastPullLT(v time.Time) predicate.Bouncer

LastPullLT applies the LT predicate on the "last_pull" field.

func LastPullLTE

func LastPullLTE(v time.Time) predicate.Bouncer

LastPullLTE applies the LTE predicate on the "last_pull" field.

func LastPullNEQ

func LastPullNEQ(v time.Time) predicate.Bouncer

LastPullNEQ applies the NEQ predicate on the "last_pull" field.

func LastPullNotIn

func LastPullNotIn(vs ...time.Time) predicate.Bouncer

LastPullNotIn applies the NotIn predicate on the "last_pull" field.

func Name

func Name(v string) predicate.Bouncer

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

func NameContains

func NameContains(v string) predicate.Bouncer

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

func NameContainsFold

func NameContainsFold(v string) predicate.Bouncer

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

func NameEQ

func NameEQ(v string) predicate.Bouncer

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

func NameEqualFold

func NameEqualFold(v string) predicate.Bouncer

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

func NameGT

func NameGT(v string) predicate.Bouncer

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

func NameGTE

func NameGTE(v string) predicate.Bouncer

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Bouncer

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Bouncer

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Bouncer

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

func NameLTE

func NameLTE(v string) predicate.Bouncer

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

func NameNEQ

func NameNEQ(v string) predicate.Bouncer

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func Revoked

func Revoked(v bool) predicate.Bouncer

Revoked applies equality check predicate on the "revoked" field. It's identical to RevokedEQ.

func RevokedEQ

func RevokedEQ(v bool) predicate.Bouncer

RevokedEQ applies the EQ predicate on the "revoked" field.

func RevokedNEQ

func RevokedNEQ(v bool) predicate.Bouncer

RevokedNEQ applies the NEQ predicate on the "revoked" field.

func Type

func Type(v string) predicate.Bouncer

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Bouncer

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Bouncer

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Bouncer

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Bouncer

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Bouncer

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Bouncer

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Bouncer

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Bouncer

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.Bouncer

TypeIn applies the In predicate on the "type" field.

func TypeIsNil

func TypeIsNil() predicate.Bouncer

TypeIsNil applies the IsNil predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Bouncer

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Bouncer

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Bouncer

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.Bouncer

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeNotNil

func TypeNotNil() predicate.Bouncer

TypeNotNil applies the NotNil predicate on the "type" field.

func Until

func Until(v time.Time) predicate.Bouncer

Until applies equality check predicate on the "until" field. It's identical to UntilEQ.

func UntilEQ

func UntilEQ(v time.Time) predicate.Bouncer

UntilEQ applies the EQ predicate on the "until" field.

func UntilGT

func UntilGT(v time.Time) predicate.Bouncer

UntilGT applies the GT predicate on the "until" field.

func UntilGTE

func UntilGTE(v time.Time) predicate.Bouncer

UntilGTE applies the GTE predicate on the "until" field.

func UntilIn

func UntilIn(vs ...time.Time) predicate.Bouncer

UntilIn applies the In predicate on the "until" field.

func UntilIsNil

func UntilIsNil() predicate.Bouncer

UntilIsNil applies the IsNil predicate on the "until" field.

func UntilLT

func UntilLT(v time.Time) predicate.Bouncer

UntilLT applies the LT predicate on the "until" field.

func UntilLTE

func UntilLTE(v time.Time) predicate.Bouncer

UntilLTE applies the LTE predicate on the "until" field.

func UntilNEQ

func UntilNEQ(v time.Time) predicate.Bouncer

UntilNEQ applies the NEQ predicate on the "until" field.

func UntilNotIn

func UntilNotIn(vs ...time.Time) predicate.Bouncer

UntilNotIn applies the NotIn predicate on the "until" field.

func UntilNotNil

func UntilNotNil() predicate.Bouncer

UntilNotNil applies the NotNil predicate on the "until" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Bouncer

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Bouncer

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Bouncer

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Bouncer

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Bouncer

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil added in v1.3.0

func UpdatedAtIsNil() predicate.Bouncer

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Bouncer

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Bouncer

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Bouncer

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Bouncer

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil added in v1.3.0

func UpdatedAtNotNil() predicate.Bouncer

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Version

func Version(v string) predicate.Bouncer

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.Bouncer

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.Bouncer

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.Bouncer

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.Bouncer

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.Bouncer

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.Bouncer

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Bouncer

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Bouncer

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.Bouncer

VersionIn applies the In predicate on the "version" field.

func VersionIsNil

func VersionIsNil() predicate.Bouncer

VersionIsNil applies the IsNil predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.Bouncer

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.Bouncer

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.Bouncer

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.Bouncer

VersionNotIn applies the NotIn predicate on the "version" field.

func VersionNotNil

func VersionNotNil() predicate.Bouncer

VersionNotNil applies the NotNil predicate on the "version" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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