Documentation

Index

Constants

View Source
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"

	// Table holds the table name of the group in the database.
	Table = "groups"
	// FilesTable is the table the holds the files relation/edge.
	FilesTable = "files"
	// FilesInverseTable is the table name for the File entity.
	// It exists in this package in order to avoid circular dependency with the "file" package.
	FilesInverseTable = "files"
	// FilesColumn is the table column denoting the files relation/edge.
	FilesColumn = "group_files"
	// BlockedTable is the table the holds the blocked relation/edge.
	BlockedTable = "users"
	// BlockedInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	BlockedInverseTable = "users"
	// BlockedColumn is the table column denoting the blocked relation/edge.
	BlockedColumn = "group_blocked"
	// UsersTable is the table the holds the users relation/edge. The primary key declared below.
	UsersTable = "user_groups"
	// UsersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UsersInverseTable = "users"
	// InfoTable is the table the holds the info relation/edge.
	InfoTable = "groups"
	// InfoInverseTable is the table name for the GroupInfo entity.
	// It exists in this package in order to avoid circular dependency with the "groupinfo" package.
	InfoInverseTable = "group_infos"
	// InfoColumn is the table column denoting the info relation/edge.
	InfoColumn = "group_info"
)

Variables

View Source
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
)

    Columns holds all SQL columns for group fields.

    View Source
    var ForeignKeys = []string{
    	"group_info",
    }

      ForeignKeys holds the SQL foreign-keys that are owned by the Group type.

      View Source
      var (
      	// UsersPrimaryKey and UsersColumn2 are the table columns denoting the
      	// primary key for the users relation (M2M).
      	UsersPrimaryKey = []string{"user_id", "group_id"}
      )

      Functions

      func Active

      func Active(v bool) predicate.Group

        Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

        func ActiveEQ

        func ActiveEQ(v bool) predicate.Group

          ActiveEQ applies the EQ predicate on the "active" field.

          func ActiveNEQ

          func ActiveNEQ(v bool) predicate.Group

            ActiveNEQ applies the NEQ predicate on the "active" field.

            func And

            func And(predicates ...predicate.Group) predicate.Group

              And groups predicates with the AND operator between them.

              func Expire

              func Expire(v time.Time) predicate.Group

                Expire applies equality check predicate on the "expire" field. It's identical to ExpireEQ.

                func ExpireEQ

                func ExpireEQ(v time.Time) predicate.Group

                  ExpireEQ applies the EQ predicate on the "expire" field.

                  func ExpireGT

                  func ExpireGT(v time.Time) predicate.Group

                    ExpireGT applies the GT predicate on the "expire" field.

                    func ExpireGTE

                    func ExpireGTE(v time.Time) predicate.Group

                      ExpireGTE applies the GTE predicate on the "expire" field.

                      func ExpireIn

                      func ExpireIn(vs ...time.Time) predicate.Group

                        ExpireIn applies the In predicate on the "expire" field.

                        func ExpireLT

                        func ExpireLT(v time.Time) predicate.Group

                          ExpireLT applies the LT predicate on the "expire" field.

                          func ExpireLTE

                          func ExpireLTE(v time.Time) predicate.Group

                            ExpireLTE applies the LTE predicate on the "expire" field.

                            func ExpireNEQ

                            func ExpireNEQ(v time.Time) predicate.Group

                              ExpireNEQ applies the NEQ predicate on the "expire" field.

                              func ExpireNotIn

                              func ExpireNotIn(vs ...time.Time) predicate.Group

                                ExpireNotIn applies the NotIn predicate on the "expire" field.

                                func HasBlocked

                                func HasBlocked() predicate.Group

                                  HasBlocked applies the HasEdge predicate on the "blocked" edge.

                                  func HasBlockedWith

                                  func HasBlockedWith(preds ...predicate.User) predicate.Group

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

                                    func HasFiles

                                    func HasFiles() predicate.Group

                                      HasFiles applies the HasEdge predicate on the "files" edge.

                                      func HasFilesWith

                                      func HasFilesWith(preds ...predicate.File) predicate.Group

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

                                        func HasInfo

                                        func HasInfo() predicate.Group

                                          HasInfo applies the HasEdge predicate on the "info" edge.

                                          func HasInfoWith

                                          func HasInfoWith(preds ...predicate.GroupInfo) predicate.Group

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

                                            func HasUsers

                                            func HasUsers() predicate.Group

                                              HasUsers applies the HasEdge predicate on the "users" edge.

                                              func HasUsersWith

                                              func HasUsersWith(preds ...predicate.User) predicate.Group

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

                                                func ID

                                                func ID(id int) predicate.Group

                                                  ID filters vertices based on their ID field.

                                                  func IDEQ

                                                  func IDEQ(id int) predicate.Group

                                                    IDEQ applies the EQ predicate on the ID field.

                                                    func IDGT

                                                    func IDGT(id int) predicate.Group

                                                      IDGT applies the GT predicate on the ID field.

                                                      func IDGTE

                                                      func IDGTE(id int) predicate.Group

                                                        IDGTE applies the GTE predicate on the ID field.

                                                        func IDIn

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

                                                          IDIn applies the In predicate on the ID field.

                                                          func IDLT

                                                          func IDLT(id int) predicate.Group

                                                            IDLT applies the LT predicate on the ID field.

                                                            func IDLTE

                                                            func IDLTE(id int) predicate.Group

                                                              IDLTE applies the LTE predicate on the ID field.

                                                              func IDNEQ

                                                              func IDNEQ(id int) predicate.Group

                                                                IDNEQ applies the NEQ predicate on the ID field.

                                                                func IDNotIn

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

                                                                  IDNotIn applies the NotIn predicate on the ID field.

                                                                  func MaxUsers

                                                                  func MaxUsers(v int) predicate.Group

                                                                    MaxUsers applies equality check predicate on the "max_users" field. It's identical to MaxUsersEQ.

                                                                    func MaxUsersEQ

                                                                    func MaxUsersEQ(v int) predicate.Group

                                                                      MaxUsersEQ applies the EQ predicate on the "max_users" field.

                                                                      func MaxUsersGT

                                                                      func MaxUsersGT(v int) predicate.Group

                                                                        MaxUsersGT applies the GT predicate on the "max_users" field.

                                                                        func MaxUsersGTE

                                                                        func MaxUsersGTE(v int) predicate.Group

                                                                          MaxUsersGTE applies the GTE predicate on the "max_users" field.

                                                                          func MaxUsersIn

                                                                          func MaxUsersIn(vs ...int) predicate.Group

                                                                            MaxUsersIn applies the In predicate on the "max_users" field.

                                                                            func MaxUsersIsNil

                                                                            func MaxUsersIsNil() predicate.Group

                                                                              MaxUsersIsNil applies the IsNil predicate on the "max_users" field.

                                                                              func MaxUsersLT

                                                                              func MaxUsersLT(v int) predicate.Group

                                                                                MaxUsersLT applies the LT predicate on the "max_users" field.

                                                                                func MaxUsersLTE

                                                                                func MaxUsersLTE(v int) predicate.Group

                                                                                  MaxUsersLTE applies the LTE predicate on the "max_users" field.

                                                                                  func MaxUsersNEQ

                                                                                  func MaxUsersNEQ(v int) predicate.Group

                                                                                    MaxUsersNEQ applies the NEQ predicate on the "max_users" field.

                                                                                    func MaxUsersNotIn

                                                                                    func MaxUsersNotIn(vs ...int) predicate.Group

                                                                                      MaxUsersNotIn applies the NotIn predicate on the "max_users" field.

                                                                                      func MaxUsersNotNil

                                                                                      func MaxUsersNotNil() predicate.Group

                                                                                        MaxUsersNotNil applies the NotNil predicate on the "max_users" field.

                                                                                        func Name

                                                                                        func Name(v string) predicate.Group

                                                                                          Name applies equality check predicate on the "name" field. It's identical to NameEQ.

                                                                                          func NameContains

                                                                                          func NameContains(v string) predicate.Group

                                                                                            NameContains applies the Contains predicate on the "name" field.

                                                                                            func NameContainsFold

                                                                                            func NameContainsFold(v string) predicate.Group

                                                                                              NameContainsFold applies the ContainsFold predicate on the "name" field.

                                                                                              func NameEQ

                                                                                              func NameEQ(v string) predicate.Group

                                                                                                NameEQ applies the EQ predicate on the "name" field.

                                                                                                func NameEqualFold

                                                                                                func NameEqualFold(v string) predicate.Group

                                                                                                  NameEqualFold applies the EqualFold predicate on the "name" field.

                                                                                                  func NameGT

                                                                                                  func NameGT(v string) predicate.Group

                                                                                                    NameGT applies the GT predicate on the "name" field.

                                                                                                    func NameGTE

                                                                                                    func NameGTE(v string) predicate.Group

                                                                                                      NameGTE applies the GTE predicate on the "name" field.

                                                                                                      func NameHasPrefix

                                                                                                      func NameHasPrefix(v string) predicate.Group

                                                                                                        NameHasPrefix applies the HasPrefix predicate on the "name" field.

                                                                                                        func NameHasSuffix

                                                                                                        func NameHasSuffix(v string) predicate.Group

                                                                                                          NameHasSuffix applies the HasSuffix predicate on the "name" field.

                                                                                                          func NameIn

                                                                                                          func NameIn(vs ...string) predicate.Group

                                                                                                            NameIn applies the In predicate on the "name" field.

                                                                                                            func NameLT

                                                                                                            func NameLT(v string) predicate.Group

                                                                                                              NameLT applies the LT predicate on the "name" field.

                                                                                                              func NameLTE

                                                                                                              func NameLTE(v string) predicate.Group

                                                                                                                NameLTE applies the LTE predicate on the "name" field.

                                                                                                                func NameNEQ

                                                                                                                func NameNEQ(v string) predicate.Group

                                                                                                                  NameNEQ applies the NEQ predicate on the "name" field.

                                                                                                                  func NameNotIn

                                                                                                                  func NameNotIn(vs ...string) predicate.Group

                                                                                                                    NameNotIn applies the NotIn predicate on the "name" field.

                                                                                                                    func Not

                                                                                                                      Not applies the not operator on the given predicate.

                                                                                                                      func Or

                                                                                                                      func Or(predicates ...predicate.Group) predicate.Group

                                                                                                                        Or groups predicates with the OR operator between them.

                                                                                                                        func Type

                                                                                                                        func Type(v string) predicate.Group

                                                                                                                          Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

                                                                                                                          func TypeContains

                                                                                                                          func TypeContains(v string) predicate.Group

                                                                                                                            TypeContains applies the Contains predicate on the "type" field.

                                                                                                                            func TypeContainsFold

                                                                                                                            func TypeContainsFold(v string) predicate.Group

                                                                                                                              TypeContainsFold applies the ContainsFold predicate on the "type" field.

                                                                                                                              func TypeEQ

                                                                                                                              func TypeEQ(v string) predicate.Group

                                                                                                                                TypeEQ applies the EQ predicate on the "type" field.

                                                                                                                                func TypeEqualFold

                                                                                                                                func TypeEqualFold(v string) predicate.Group

                                                                                                                                  TypeEqualFold applies the EqualFold predicate on the "type" field.

                                                                                                                                  func TypeGT

                                                                                                                                  func TypeGT(v string) predicate.Group

                                                                                                                                    TypeGT applies the GT predicate on the "type" field.

                                                                                                                                    func TypeGTE

                                                                                                                                    func TypeGTE(v string) predicate.Group

                                                                                                                                      TypeGTE applies the GTE predicate on the "type" field.

                                                                                                                                      func TypeHasPrefix

                                                                                                                                      func TypeHasPrefix(v string) predicate.Group

                                                                                                                                        TypeHasPrefix applies the HasPrefix predicate on the "type" field.

                                                                                                                                        func TypeHasSuffix

                                                                                                                                        func TypeHasSuffix(v string) predicate.Group

                                                                                                                                          TypeHasSuffix applies the HasSuffix predicate on the "type" field.

                                                                                                                                          func TypeIn

                                                                                                                                          func TypeIn(vs ...string) predicate.Group

                                                                                                                                            TypeIn applies the In predicate on the "type" field.

                                                                                                                                            func TypeIsNil

                                                                                                                                            func TypeIsNil() predicate.Group

                                                                                                                                              TypeIsNil applies the IsNil predicate on the "type" field.

                                                                                                                                              func TypeLT

                                                                                                                                              func TypeLT(v string) predicate.Group

                                                                                                                                                TypeLT applies the LT predicate on the "type" field.

                                                                                                                                                func TypeLTE

                                                                                                                                                func TypeLTE(v string) predicate.Group

                                                                                                                                                  TypeLTE applies the LTE predicate on the "type" field.

                                                                                                                                                  func TypeNEQ

                                                                                                                                                  func TypeNEQ(v string) predicate.Group

                                                                                                                                                    TypeNEQ applies the NEQ predicate on the "type" field.

                                                                                                                                                    func TypeNotIn

                                                                                                                                                    func TypeNotIn(vs ...string) predicate.Group

                                                                                                                                                      TypeNotIn applies the NotIn predicate on the "type" field.

                                                                                                                                                      func TypeNotNil

                                                                                                                                                      func TypeNotNil() predicate.Group

                                                                                                                                                        TypeNotNil applies the NotNil predicate on the "type" 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.

                                                                                                                                                          Source Files