group

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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"
	// 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

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
)

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 string) predicate.Group

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Group

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Group

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Group

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Group

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Group

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Group

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) 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 NameEQ

func NameEQ(v string) predicate.Group

NameEQ applies the EQ 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 TypeEQ

func TypeEQ(v string) predicate.Group

TypeEQ applies the EQ 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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