Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func DisplayName(v string) predicate.User
- func DisplayNameContains(v string) predicate.User
- func DisplayNameContainsFold(v string) predicate.User
- func DisplayNameEQ(v string) predicate.User
- func DisplayNameEqualFold(v string) predicate.User
- func DisplayNameGT(v string) predicate.User
- func DisplayNameGTE(v string) predicate.User
- func DisplayNameHasPrefix(v string) predicate.User
- func DisplayNameHasSuffix(v string) predicate.User
- func DisplayNameIn(vs ...string) predicate.User
- func DisplayNameLT(v string) predicate.User
- func DisplayNameLTE(v string) predicate.User
- func DisplayNameNEQ(v string) predicate.User
- func DisplayNameNotIn(vs ...string) predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailIsNil() predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func EmailNotNil() predicate.User
- func HasSilences() predicate.User
- func HasSilencesWith(preds ...predicate.Silence) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Mobile(v string) predicate.User
- func MobileContains(v string) predicate.User
- func MobileContainsFold(v string) predicate.User
- func MobileEQ(v string) predicate.User
- func MobileEqualFold(v string) predicate.User
- func MobileGT(v string) predicate.User
- func MobileGTE(v string) predicate.User
- func MobileHasPrefix(v string) predicate.User
- func MobileHasSuffix(v string) predicate.User
- func MobileIn(vs ...string) predicate.User
- func MobileIsNil() predicate.User
- func MobileLT(v string) predicate.User
- func MobileLTE(v string) predicate.User
- func MobileNEQ(v string) predicate.User
- func MobileNotIn(vs ...string) predicate.User
- func MobileNotNil() predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func PrincipalName(v string) predicate.User
- func PrincipalNameContains(v string) predicate.User
- func PrincipalNameContainsFold(v string) predicate.User
- func PrincipalNameEQ(v string) predicate.User
- func PrincipalNameEqualFold(v string) predicate.User
- func PrincipalNameGT(v string) predicate.User
- func PrincipalNameGTE(v string) predicate.User
- func PrincipalNameHasPrefix(v string) predicate.User
- func PrincipalNameHasSuffix(v string) predicate.User
- func PrincipalNameIn(vs ...string) predicate.User
- func PrincipalNameLT(v string) predicate.User
- func PrincipalNameLTE(v string) predicate.User
- func PrincipalNameNEQ(v string) predicate.User
- func PrincipalNameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMobile(opts ...sql.OrderTermOption) OrderOption
- func ByPrincipalName(opts ...sql.OrderTermOption) OrderOption
- func BySilences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySilencesCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldPrincipalName, FieldDisplayName, FieldEmail, FieldMobile, }
Columns holds all SQL columns for user fields.
Functions ¶
func DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailIsNil ¶
EmailIsNil applies the IsNil predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func EmailNotNil ¶
EmailNotNil applies the NotNil predicate on the "email" field.
func HasSilences ¶
HasSilences applies the HasEdge predicate on the "silences" edge.
func HasSilencesWith ¶
HasSilencesWith applies the HasEdge predicate on the "silences" edge with a given conditions (other predicates).
func Mobile ¶
Mobile applies equality check predicate on the "mobile" field. It's identical to MobileEQ.
func MobileContains ¶
MobileContains applies the Contains predicate on the "mobile" field.
func MobileContainsFold ¶
MobileContainsFold applies the ContainsFold predicate on the "mobile" field.
func MobileEqualFold ¶
MobileEqualFold applies the EqualFold predicate on the "mobile" field.
func MobileHasPrefix ¶
MobileHasPrefix applies the HasPrefix predicate on the "mobile" field.
func MobileHasSuffix ¶
MobileHasSuffix applies the HasSuffix predicate on the "mobile" field.
func MobileIsNil ¶
MobileIsNil applies the IsNil predicate on the "mobile" field.
func MobileNotIn ¶
MobileNotIn applies the NotIn predicate on the "mobile" field.
func MobileNotNil ¶
MobileNotNil applies the NotNil predicate on the "mobile" field.
func PrincipalName ¶
PrincipalName applies equality check predicate on the "principal_name" field. It's identical to PrincipalNameEQ.
func PrincipalNameContains ¶
PrincipalNameContains applies the Contains predicate on the "principal_name" field.
func PrincipalNameContainsFold ¶
PrincipalNameContainsFold applies the ContainsFold predicate on the "principal_name" field.
func PrincipalNameEQ ¶
PrincipalNameEQ applies the EQ predicate on the "principal_name" field.
func PrincipalNameEqualFold ¶
PrincipalNameEqualFold applies the EqualFold predicate on the "principal_name" field.
func PrincipalNameGT ¶
PrincipalNameGT applies the GT predicate on the "principal_name" field.
func PrincipalNameGTE ¶
PrincipalNameGTE applies the GTE predicate on the "principal_name" field.
func PrincipalNameHasPrefix ¶
PrincipalNameHasPrefix applies the HasPrefix predicate on the "principal_name" field.
func PrincipalNameHasSuffix ¶
PrincipalNameHasSuffix applies the HasSuffix predicate on the "principal_name" field.
func PrincipalNameIn ¶
PrincipalNameIn applies the In predicate on the "principal_name" field.
func PrincipalNameLT ¶
PrincipalNameLT applies the LT predicate on the "principal_name" field.
func PrincipalNameLTE ¶
PrincipalNameLTE applies the LTE predicate on the "principal_name" field.
func PrincipalNameNEQ ¶
PrincipalNameNEQ applies the NEQ predicate on the "principal_name" field.
func PrincipalNameNotIn ¶
PrincipalNameNotIn applies the NotIn predicate on the "principal_name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.