Documentation ¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.Group
- func ActiveEQ(v bool) predicate.Group
- func ActiveNEQ(v bool) predicate.Group
- func And(predicates ...predicate.Group) predicate.Group
- func Expire(v time.Time) predicate.Group
- func ExpireEQ(v time.Time) predicate.Group
- func ExpireGT(v time.Time) predicate.Group
- func ExpireGTE(v time.Time) predicate.Group
- func ExpireIn(vs ...time.Time) predicate.Group
- func ExpireLT(v time.Time) predicate.Group
- func ExpireLTE(v time.Time) predicate.Group
- func ExpireNEQ(v time.Time) predicate.Group
- func ExpireNotIn(vs ...time.Time) predicate.Group
- func HasBlocked() predicate.Group
- func HasBlockedWith(preds ...predicate.User) predicate.Group
- func HasFiles() predicate.Group
- func HasFilesWith(preds ...predicate.File) predicate.Group
- func HasInfo() predicate.Group
- func HasInfoWith(preds ...predicate.GroupInfo) predicate.Group
- func HasUsers() predicate.Group
- func HasUsersWith(preds ...predicate.User) predicate.Group
- func ID(id string) predicate.Group
- func IDEQ(id string) predicate.Group
- func IDGT(id string) predicate.Group
- func IDGTE(id string) predicate.Group
- func IDIn(ids ...string) predicate.Group
- func IDLT(id string) predicate.Group
- func IDLTE(id string) predicate.Group
- func IDNEQ(id string) predicate.Group
- func IDNotIn(ids ...string) predicate.Group
- func MaxUsers(v int) predicate.Group
- func MaxUsersEQ(v int) predicate.Group
- func MaxUsersGT(v int) predicate.Group
- func MaxUsersGTE(v int) predicate.Group
- func MaxUsersIn(vs ...int) predicate.Group
- func MaxUsersIsNil() predicate.Group
- func MaxUsersLT(v int) predicate.Group
- func MaxUsersLTE(v int) predicate.Group
- func MaxUsersNEQ(v int) predicate.Group
- func MaxUsersNotIn(vs ...int) predicate.Group
- func MaxUsersNotNil() predicate.Group
- func Name(v string) predicate.Group
- func NameContains(v string) predicate.Group
- func NameEQ(v string) predicate.Group
- func NameGT(v string) predicate.Group
- func NameGTE(v string) predicate.Group
- func NameHasPrefix(v string) predicate.Group
- func NameHasSuffix(v string) predicate.Group
- func NameIn(vs ...string) predicate.Group
- func NameLT(v string) predicate.Group
- func NameLTE(v string) predicate.Group
- func NameNEQ(v string) predicate.Group
- func NameNotIn(vs ...string) predicate.Group
- func Not(p predicate.Group) predicate.Group
- func Or(predicates ...predicate.Group) predicate.Group
- func Type(v string) predicate.Group
- func TypeContains(v string) predicate.Group
- func TypeEQ(v string) predicate.Group
- func TypeGT(v string) predicate.Group
- func TypeGTE(v string) predicate.Group
- func TypeHasPrefix(v string) predicate.Group
- func TypeHasSuffix(v string) predicate.Group
- func TypeIn(vs ...string) predicate.Group
- func TypeIsNil() predicate.Group
- func TypeLT(v string) predicate.Group
- func TypeLTE(v string) predicate.Group
- func TypeNEQ(v string) predicate.Group
- func TypeNotIn(vs ...string) predicate.Group
- func TypeNotNil() predicate.Group
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the group type in the database. Label = "group" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldExpire holds the string denoting the expire field in the database. FieldExpire = "expire" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldMaxUsers holds the string denoting the max_users field in the database. FieldMaxUsers = "max_users" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // EdgeBlocked holds the string denoting the blocked edge name in mutations. EdgeBlocked = "blocked" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeInfo holds the string denoting the info edge name in mutations. EdgeInfo = "info" // FilesLabel holds the string label denoting the files edge type in the database. FilesLabel = "group_files" // BlockedLabel holds the string label denoting the blocked edge type in the database. BlockedLabel = "group_blocked" // UsersInverseLabel holds the string label denoting the users inverse edge type in the database. UsersInverseLabel = "user_groups" // InfoLabel holds the string label denoting the info edge type in the database. InfoLabel = "group_info" )
Variables ¶
var ( // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // DefaultMaxUsers holds the default value on creation for the "max_users" field. DefaultMaxUsers int // MaxUsersValidator is a validator for the "max_users" field. It is called by the builders before save. MaxUsersValidator func(int) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func Expire ¶
Expire applies equality check predicate on the "expire" field. It's identical to ExpireEQ.
func ExpireNotIn ¶
ExpireNotIn applies the NotIn predicate on the "expire" field.
func HasBlocked ¶
HasBlocked applies the HasEdge predicate on the "blocked" edge.
func HasBlockedWith ¶
HasBlockedWith applies the HasEdge predicate on the "blocked" edge with a given conditions (other predicates).
func HasFilesWith ¶
HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
func HasInfoWith ¶
HasInfoWith applies the HasEdge predicate on the "info" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func MaxUsers ¶
MaxUsers applies equality check predicate on the "max_users" field. It's identical to MaxUsersEQ.
func MaxUsersEQ ¶
MaxUsersEQ applies the EQ predicate on the "max_users" field.
func MaxUsersGT ¶
MaxUsersGT applies the GT predicate on the "max_users" field.
func MaxUsersGTE ¶
MaxUsersGTE applies the GTE predicate on the "max_users" field.
func MaxUsersIn ¶
MaxUsersIn applies the In predicate on the "max_users" field.
func MaxUsersIsNil ¶
MaxUsersIsNil applies the IsNil predicate on the "max_users" field.
func MaxUsersLT ¶
MaxUsersLT applies the LT predicate on the "max_users" field.
func MaxUsersLTE ¶
MaxUsersLTE applies the LTE predicate on the "max_users" field.
func MaxUsersNEQ ¶
MaxUsersNEQ applies the NEQ predicate on the "max_users" field.
func MaxUsersNotIn ¶
MaxUsersNotIn applies the NotIn predicate on the "max_users" field.
func MaxUsersNotNil ¶
MaxUsersNotNil applies the NotNil predicate on the "max_users" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeNotNil ¶
TypeNotNil applies the NotNil predicate on the "type" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Group queries.