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 HasAddresses() predicate.User
- func HasAddressesWith(preds ...predicate.UserAddr) 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 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 ByAddresses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAddressesCount(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByID(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" // EdgeSilences holds the string denoting the silences edge name in mutations. EdgeSilences = "silences" // EdgeAddresses holds the string denoting the addresses edge name in mutations. EdgeAddresses = "addresses" // 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" // AddressesTable is the table that holds the addresses relation/edge. AddressesTable = "user_addr" // AddressesInverseTable is the table name for the UserAddr entity. // It exists in this package in order to avoid circular dependency with the "useraddr" package. AddressesInverseTable = "user_addr" // AddressesColumn is the table column denoting the addresses relation/edge. AddressesColumn = "user_id" )
Variables ¶
var Columns = []string{ FieldID, FieldPrincipalName, FieldDisplayName, }
Columns holds all SQL columns for user fields.
var (
Hooks [1]ent.Hook
)
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"
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 HasAddresses ¶
HasAddresses applies the HasEdge predicate on the "addresses" edge.
func HasAddressesWith ¶
HasAddressesWith applies the HasEdge predicate on the "addresses" edge with a given conditions (other predicates).
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 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 ByAddresses ¶
func ByAddresses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAddresses orders the results by addresses terms.
func ByAddressesCount ¶
func ByAddressesCount(opts ...sql.OrderTermOption) OrderOption
ByAddressesCount orders the results by addresses count.
func ByDisplayName ¶
func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
ByDisplayName orders the results by the display_name field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id 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.