user

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldDisplayname holds the string denoting the displayname field in the database.
	FieldDisplayname = "displayname"
	// FieldLowerUsername holds the string denoting the lower_username field in the database.
	FieldLowerUsername = "lower_username"
	// FieldPasswordHash holds the string denoting the passwordhash field in the database.
	FieldPasswordHash = "password_hash"
	// EdgeZones holds the string denoting the zones edge name in mutations.
	EdgeZones = "zones"
	// Table holds the table name of the user in the database.
	Table = "users"
	// ZonesTable is the table the holds the zones relation/edge.
	ZonesTable = "zones"
	// ZonesInverseTable is the table name for the Zone entity.
	// It exists in this package in order to avoid circular dependency with the "zone" package.
	ZonesInverseTable = "zones"
	// ZonesColumn is the table column denoting the zones relation/edge.
	ZonesColumn = "user_zones"
)

Variables

View Source
var (
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// UsernameValidator is a validator for the "username" field. It is called by the builders before save.
	UsernameValidator func(string) error
	// LowerUsernameValidator is a validator for the "lower_username" field. It is called by the builders before save.
	LowerUsernameValidator func(string) error
)

Columns holds all SQL columns for user fields.

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func Displayname added in v0.0.2

func Displayname(v string) predicate.User

Displayname applies equality check predicate on the "displayname" field. It's identical to DisplaynameEQ.

func DisplaynameContains added in v0.0.2

func DisplaynameContains(v string) predicate.User

DisplaynameContains applies the Contains predicate on the "displayname" field.

func DisplaynameContainsFold added in v0.0.2

func DisplaynameContainsFold(v string) predicate.User

DisplaynameContainsFold applies the ContainsFold predicate on the "displayname" field.

func DisplaynameEQ added in v0.0.2

func DisplaynameEQ(v string) predicate.User

DisplaynameEQ applies the EQ predicate on the "displayname" field.

func DisplaynameEqualFold added in v0.0.2

func DisplaynameEqualFold(v string) predicate.User

DisplaynameEqualFold applies the EqualFold predicate on the "displayname" field.

func DisplaynameGT added in v0.0.2

func DisplaynameGT(v string) predicate.User

DisplaynameGT applies the GT predicate on the "displayname" field.

func DisplaynameGTE added in v0.0.2

func DisplaynameGTE(v string) predicate.User

DisplaynameGTE applies the GTE predicate on the "displayname" field.

func DisplaynameHasPrefix added in v0.0.2

func DisplaynameHasPrefix(v string) predicate.User

DisplaynameHasPrefix applies the HasPrefix predicate on the "displayname" field.

func DisplaynameHasSuffix added in v0.0.2

func DisplaynameHasSuffix(v string) predicate.User

DisplaynameHasSuffix applies the HasSuffix predicate on the "displayname" field.

func DisplaynameIn added in v0.0.2

func DisplaynameIn(vs ...string) predicate.User

DisplaynameIn applies the In predicate on the "displayname" field.

func DisplaynameLT added in v0.0.2

func DisplaynameLT(v string) predicate.User

DisplaynameLT applies the LT predicate on the "displayname" field.

func DisplaynameLTE added in v0.0.2

func DisplaynameLTE(v string) predicate.User

DisplaynameLTE applies the LTE predicate on the "displayname" field.

func DisplaynameNEQ added in v0.0.2

func DisplaynameNEQ(v string) predicate.User

DisplaynameNEQ applies the NEQ predicate on the "displayname" field.

func DisplaynameNotIn added in v0.0.2

func DisplaynameNotIn(vs ...string) predicate.User

DisplaynameNotIn applies the NotIn predicate on the "displayname" field.

func Email

func Email(v string) predicate.User

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.User

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.User

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.User

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.User

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.User

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.User

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.User

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.User

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.User

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.User

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.User

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.User

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.User

EmailNotIn applies the NotIn predicate on the "email" field.

func HasZones

func HasZones() predicate.User

HasZones applies the HasEdge predicate on the "zones" edge.

func HasZonesWith

func HasZonesWith(preds ...predicate.Zone) predicate.User

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

func ID

func ID(id int) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LowerUsername

func LowerUsername(v string) predicate.User

LowerUsername applies equality check predicate on the "lower_username" field. It's identical to LowerUsernameEQ.

func LowerUsernameContains

func LowerUsernameContains(v string) predicate.User

LowerUsernameContains applies the Contains predicate on the "lower_username" field.

func LowerUsernameContainsFold

func LowerUsernameContainsFold(v string) predicate.User

LowerUsernameContainsFold applies the ContainsFold predicate on the "lower_username" field.

func LowerUsernameEQ

func LowerUsernameEQ(v string) predicate.User

LowerUsernameEQ applies the EQ predicate on the "lower_username" field.

func LowerUsernameEqualFold

func LowerUsernameEqualFold(v string) predicate.User

LowerUsernameEqualFold applies the EqualFold predicate on the "lower_username" field.

func LowerUsernameGT

func LowerUsernameGT(v string) predicate.User

LowerUsernameGT applies the GT predicate on the "lower_username" field.

func LowerUsernameGTE

func LowerUsernameGTE(v string) predicate.User

LowerUsernameGTE applies the GTE predicate on the "lower_username" field.

func LowerUsernameHasPrefix

func LowerUsernameHasPrefix(v string) predicate.User

LowerUsernameHasPrefix applies the HasPrefix predicate on the "lower_username" field.

func LowerUsernameHasSuffix

func LowerUsernameHasSuffix(v string) predicate.User

LowerUsernameHasSuffix applies the HasSuffix predicate on the "lower_username" field.

func LowerUsernameIn

func LowerUsernameIn(vs ...string) predicate.User

LowerUsernameIn applies the In predicate on the "lower_username" field.

func LowerUsernameLT

func LowerUsernameLT(v string) predicate.User

LowerUsernameLT applies the LT predicate on the "lower_username" field.

func LowerUsernameLTE

func LowerUsernameLTE(v string) predicate.User

LowerUsernameLTE applies the LTE predicate on the "lower_username" field.

func LowerUsernameNEQ

func LowerUsernameNEQ(v string) predicate.User

LowerUsernameNEQ applies the NEQ predicate on the "lower_username" field.

func LowerUsernameNotIn

func LowerUsernameNotIn(vs ...string) predicate.User

LowerUsernameNotIn applies the NotIn predicate on the "lower_username" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups predicates with the OR operator between them.

func PasswordHash

func PasswordHash(v []byte) predicate.User

PasswordHash applies equality check predicate on the "passwordHash" field. It's identical to PasswordHashEQ.

func PasswordHashEQ

func PasswordHashEQ(v []byte) predicate.User

PasswordHashEQ applies the EQ predicate on the "passwordHash" field.

func PasswordHashGT

func PasswordHashGT(v []byte) predicate.User

PasswordHashGT applies the GT predicate on the "passwordHash" field.

func PasswordHashGTE

func PasswordHashGTE(v []byte) predicate.User

PasswordHashGTE applies the GTE predicate on the "passwordHash" field.

func PasswordHashIn

func PasswordHashIn(vs ...[]byte) predicate.User

PasswordHashIn applies the In predicate on the "passwordHash" field.

func PasswordHashLT

func PasswordHashLT(v []byte) predicate.User

PasswordHashLT applies the LT predicate on the "passwordHash" field.

func PasswordHashLTE

func PasswordHashLTE(v []byte) predicate.User

PasswordHashLTE applies the LTE predicate on the "passwordHash" field.

func PasswordHashNEQ

func PasswordHashNEQ(v []byte) predicate.User

PasswordHashNEQ applies the NEQ predicate on the "passwordHash" field.

func PasswordHashNotIn

func PasswordHashNotIn(vs ...[]byte) predicate.User

PasswordHashNotIn applies the NotIn predicate on the "passwordHash" field.

func Username

func Username(v string) predicate.User

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.User

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.User

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.User

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.User

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.User

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.User

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.User

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.User

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

func UsernameIn(vs ...string) predicate.User

UsernameIn applies the In predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.User

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.User

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.User

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

func UsernameNotIn(vs ...string) predicate.User

UsernameNotIn applies the NotIn predicate on the "username" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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