user

package
v0.0.0-...-9f34937 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 5 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"
	// FieldPrincipalName holds the string denoting the principal_name field in the database.
	FieldPrincipalName = "principal_name"
	// FieldDisplayName holds the string denoting the display_name field in the database.
	FieldDisplayName = "display_name"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldMobile holds the string denoting the mobile field in the database.
	FieldMobile = "mobile"
	// EdgeSilences holds the string denoting the silences edge name in mutations.
	EdgeSilences = "silences"
	// Table holds the table name of the user in the database.
	Table = "user"
	// SilencesTable is the table that holds the silences relation/edge.
	SilencesTable = "msg_silence"
	// SilencesInverseTable is the table name for the Silence entity.
	// It exists in this package in order to avoid circular dependency with the "silence" package.
	SilencesInverseTable = "msg_silence"
	// SilencesColumn is the table column denoting the silences relation/edge.
	SilencesColumn = "created_by"
)

Variables

View Source
var (
	Hooks [1]ent.Hook
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// MobileValidator is a validator for the "mobile" field. It is called by the builders before save.
	MobileValidator func(string) error
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/woocoos/msgcenter/ent/runtime"

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

func DisplayName(v string) predicate.User

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.User

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.User

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.User

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.User

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.User

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.User

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.User

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.User

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

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

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.User

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.User

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.User

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

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

DisplayNameNotIn applies the NotIn predicate on the "display_name" 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 EmailIsNil

func EmailIsNil() predicate.User

EmailIsNil applies the IsNil 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 EmailNotNil

func EmailNotNil() predicate.User

EmailNotNil applies the NotNil predicate on the "email" field.

func HasSilences

func HasSilences() predicate.User

HasSilences applies the HasEdge predicate on the "silences" edge.

func HasSilencesWith

func HasSilencesWith(preds ...predicate.Silence) predicate.User

HasSilencesWith applies the HasEdge predicate on the "silences" 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 Mobile

func Mobile(v string) predicate.User

Mobile applies equality check predicate on the "mobile" field. It's identical to MobileEQ.

func MobileContains

func MobileContains(v string) predicate.User

MobileContains applies the Contains predicate on the "mobile" field.

func MobileContainsFold

func MobileContainsFold(v string) predicate.User

MobileContainsFold applies the ContainsFold predicate on the "mobile" field.

func MobileEQ

func MobileEQ(v string) predicate.User

MobileEQ applies the EQ predicate on the "mobile" field.

func MobileEqualFold

func MobileEqualFold(v string) predicate.User

MobileEqualFold applies the EqualFold predicate on the "mobile" field.

func MobileGT

func MobileGT(v string) predicate.User

MobileGT applies the GT predicate on the "mobile" field.

func MobileGTE

func MobileGTE(v string) predicate.User

MobileGTE applies the GTE predicate on the "mobile" field.

func MobileHasPrefix

func MobileHasPrefix(v string) predicate.User

MobileHasPrefix applies the HasPrefix predicate on the "mobile" field.

func MobileHasSuffix

func MobileHasSuffix(v string) predicate.User

MobileHasSuffix applies the HasSuffix predicate on the "mobile" field.

func MobileIn

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

MobileIn applies the In predicate on the "mobile" field.

func MobileIsNil

func MobileIsNil() predicate.User

MobileIsNil applies the IsNil predicate on the "mobile" field.

func MobileLT

func MobileLT(v string) predicate.User

MobileLT applies the LT predicate on the "mobile" field.

func MobileLTE

func MobileLTE(v string) predicate.User

MobileLTE applies the LTE predicate on the "mobile" field.

func MobileNEQ

func MobileNEQ(v string) predicate.User

MobileNEQ applies the NEQ predicate on the "mobile" field.

func MobileNotIn

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

MobileNotIn applies the NotIn predicate on the "mobile" field.

func MobileNotNil

func MobileNotNil() predicate.User

MobileNotNil applies the NotNil predicate on the "mobile" 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 PrincipalName

func PrincipalName(v string) predicate.User

PrincipalName applies equality check predicate on the "principal_name" field. It's identical to PrincipalNameEQ.

func PrincipalNameContains

func PrincipalNameContains(v string) predicate.User

PrincipalNameContains applies the Contains predicate on the "principal_name" field.

func PrincipalNameContainsFold

func PrincipalNameContainsFold(v string) predicate.User

PrincipalNameContainsFold applies the ContainsFold predicate on the "principal_name" field.

func PrincipalNameEQ

func PrincipalNameEQ(v string) predicate.User

PrincipalNameEQ applies the EQ predicate on the "principal_name" field.

func PrincipalNameEqualFold

func PrincipalNameEqualFold(v string) predicate.User

PrincipalNameEqualFold applies the EqualFold predicate on the "principal_name" field.

func PrincipalNameGT

func PrincipalNameGT(v string) predicate.User

PrincipalNameGT applies the GT predicate on the "principal_name" field.

func PrincipalNameGTE

func PrincipalNameGTE(v string) predicate.User

PrincipalNameGTE applies the GTE predicate on the "principal_name" field.

func PrincipalNameHasPrefix

func PrincipalNameHasPrefix(v string) predicate.User

PrincipalNameHasPrefix applies the HasPrefix predicate on the "principal_name" field.

func PrincipalNameHasSuffix

func PrincipalNameHasSuffix(v string) predicate.User

PrincipalNameHasSuffix applies the HasSuffix predicate on the "principal_name" field.

func PrincipalNameIn

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

PrincipalNameIn applies the In predicate on the "principal_name" field.

func PrincipalNameLT

func PrincipalNameLT(v string) predicate.User

PrincipalNameLT applies the LT predicate on the "principal_name" field.

func PrincipalNameLTE

func PrincipalNameLTE(v string) predicate.User

PrincipalNameLTE applies the LTE predicate on the "principal_name" field.

func PrincipalNameNEQ

func PrincipalNameNEQ(v string) predicate.User

PrincipalNameNEQ applies the NEQ predicate on the "principal_name" field.

func PrincipalNameNotIn

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

PrincipalNameNotIn applies the NotIn predicate on the "principal_name" 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 User queries.

func ByDisplayName

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

ByDisplayName orders the results by the display_name field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByID

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

ByID orders the results by the id field.

func ByMobile

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

ByMobile orders the results by the mobile field.

func ByPrincipalName

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

ByPrincipalName orders the results by the principal_name field.

func BySilences

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

BySilences orders the results by silences terms.

func BySilencesCount

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

BySilencesCount orders the results by silences count.

Jump to

Keyboard shortcuts

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