user

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// FieldName holds the string denoting the name vertex property in the database.
	FieldName = "name"
	// FieldOAuthID holds the string denoting the oauthid vertex property in the database.
	FieldOAuthID = "o_auth_id"
	// FieldPhotoURL holds the string denoting the photourl vertex property in the database.
	FieldPhotoURL = "photo_url"
	// FieldSessionToken holds the string denoting the sessiontoken vertex property in the database.
	FieldSessionToken = "session_token"
	// FieldIsActivated holds the string denoting the isactivated vertex property in the database.
	FieldIsActivated = "is_activated"
	// FieldIsAdmin holds the string denoting the isadmin vertex property in the database.
	FieldIsAdmin = "is_admin"

	// Table holds the table name of the user in the database.
	Table = "users"
	// JobsTable is the table the holds the jobs relation/edge.
	JobsTable = "jobs"
	// JobsInverseTable is the table name for the Job entity.
	// It exists in this package in order to avoid circular dependency with the "job" package.
	JobsInverseTable = "jobs"
	// JobsColumn is the table column denoting the jobs relation/edge.
	JobsColumn = "owner_id"
	// EventsTable is the table the holds the events relation/edge.
	EventsTable = "events"
	// EventsInverseTable is the table name for the Event entity.
	// It exists in this package in order to avoid circular dependency with the "event" package.
	EventsInverseTable = "events"
	// EventsColumn is the table column denoting the events relation/edge.
	EventsColumn = "owner_id"
)

Variables

View Source
var (

	// NameValidator is a validator for the "Name" field. It is called by the builders before save.
	NameValidator = func() func(string) error {
		validators := descName.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(Name string) error {
			for _, fn := range fns {
				if err := fn(Name); err != nil {
					return err
				}
			}
			return nil
		}
	}()

	// SessionTokenValidator is a validator for the "SessionToken" field. It is called by the builders before save.
	SessionTokenValidator = descSessionToken.Validators[0].(func(string) error)

	// DefaultIsActivated holds the default value on creation for the IsActivated field.
	DefaultIsActivated = descIsActivated.Default.(bool)

	// DefaultIsAdmin holds the default value on creation for the IsAdmin field.
	DefaultIsAdmin = descIsAdmin.Default.(bool)
)

Columns holds all SQL columns for user fields.

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

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

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups list of predicates with the AND operator between them.

func HasEvents

func HasEvents() predicate.User

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith

func HasEventsWith(preds ...predicate.Event) predicate.User

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

func HasJobs

func HasJobs() predicate.User

HasJobs applies the HasEdge predicate on the "jobs" edge.

func HasJobsWith

func HasJobsWith(preds ...predicate.Job) predicate.User

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

func ID

func ID(id int) predicate.User

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsActivated

func IsActivated(v bool) predicate.User

IsActivated applies equality check predicate on the "IsActivated" field. It's identical to IsActivatedEQ.

func IsActivatedEQ

func IsActivatedEQ(v bool) predicate.User

IsActivatedEQ applies the EQ predicate on the "IsActivated" field.

func IsActivatedNEQ

func IsActivatedNEQ(v bool) predicate.User

IsActivatedNEQ applies the NEQ predicate on the "IsActivated" field.

func IsAdmin

func IsAdmin(v bool) predicate.User

IsAdmin applies equality check predicate on the "IsAdmin" field. It's identical to IsAdminEQ.

func IsAdminEQ

func IsAdminEQ(v bool) predicate.User

IsAdminEQ applies the EQ predicate on the "IsAdmin" field.

func IsAdminNEQ

func IsAdminNEQ(v bool) predicate.User

IsAdminNEQ applies the NEQ predicate on the "IsAdmin" field.

func Name

func Name(v string) predicate.User

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

func NameContains

func NameContains(v string) predicate.User

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

func NameContainsFold

func NameContainsFold(v string) predicate.User

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

func NameEQ

func NameEQ(v string) predicate.User

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

func NameEqualFold

func NameEqualFold(v string) predicate.User

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

func NameGT

func NameGT(v string) predicate.User

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

func NameGTE

func NameGTE(v string) predicate.User

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.User

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.User

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.User

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

func NameLTE

func NameLTE(v string) predicate.User

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

func NameNEQ

func NameNEQ(v string) predicate.User

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func OAuthID

func OAuthID(v string) predicate.User

OAuthID applies equality check predicate on the "OAuthID" field. It's identical to OAuthIDEQ.

func OAuthIDContains

func OAuthIDContains(v string) predicate.User

OAuthIDContains applies the Contains predicate on the "OAuthID" field.

func OAuthIDContainsFold

func OAuthIDContainsFold(v string) predicate.User

OAuthIDContainsFold applies the ContainsFold predicate on the "OAuthID" field.

func OAuthIDEQ

func OAuthIDEQ(v string) predicate.User

OAuthIDEQ applies the EQ predicate on the "OAuthID" field.

func OAuthIDEqualFold

func OAuthIDEqualFold(v string) predicate.User

OAuthIDEqualFold applies the EqualFold predicate on the "OAuthID" field.

func OAuthIDGT

func OAuthIDGT(v string) predicate.User

OAuthIDGT applies the GT predicate on the "OAuthID" field.

func OAuthIDGTE

func OAuthIDGTE(v string) predicate.User

OAuthIDGTE applies the GTE predicate on the "OAuthID" field.

func OAuthIDHasPrefix

func OAuthIDHasPrefix(v string) predicate.User

OAuthIDHasPrefix applies the HasPrefix predicate on the "OAuthID" field.

func OAuthIDHasSuffix

func OAuthIDHasSuffix(v string) predicate.User

OAuthIDHasSuffix applies the HasSuffix predicate on the "OAuthID" field.

func OAuthIDIn

func OAuthIDIn(vs ...string) predicate.User

OAuthIDIn applies the In predicate on the "OAuthID" field.

func OAuthIDLT

func OAuthIDLT(v string) predicate.User

OAuthIDLT applies the LT predicate on the "OAuthID" field.

func OAuthIDLTE

func OAuthIDLTE(v string) predicate.User

OAuthIDLTE applies the LTE predicate on the "OAuthID" field.

func OAuthIDNEQ

func OAuthIDNEQ(v string) predicate.User

OAuthIDNEQ applies the NEQ predicate on the "OAuthID" field.

func OAuthIDNotIn

func OAuthIDNotIn(vs ...string) predicate.User

OAuthIDNotIn applies the NotIn predicate on the "OAuthID" field.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups list of predicates with the OR operator between them.

func PhotoURL

func PhotoURL(v string) predicate.User

PhotoURL applies equality check predicate on the "PhotoURL" field. It's identical to PhotoURLEQ.

func PhotoURLContains

func PhotoURLContains(v string) predicate.User

PhotoURLContains applies the Contains predicate on the "PhotoURL" field.

func PhotoURLContainsFold

func PhotoURLContainsFold(v string) predicate.User

PhotoURLContainsFold applies the ContainsFold predicate on the "PhotoURL" field.

func PhotoURLEQ

func PhotoURLEQ(v string) predicate.User

PhotoURLEQ applies the EQ predicate on the "PhotoURL" field.

func PhotoURLEqualFold

func PhotoURLEqualFold(v string) predicate.User

PhotoURLEqualFold applies the EqualFold predicate on the "PhotoURL" field.

func PhotoURLGT

func PhotoURLGT(v string) predicate.User

PhotoURLGT applies the GT predicate on the "PhotoURL" field.

func PhotoURLGTE

func PhotoURLGTE(v string) predicate.User

PhotoURLGTE applies the GTE predicate on the "PhotoURL" field.

func PhotoURLHasPrefix

func PhotoURLHasPrefix(v string) predicate.User

PhotoURLHasPrefix applies the HasPrefix predicate on the "PhotoURL" field.

func PhotoURLHasSuffix

func PhotoURLHasSuffix(v string) predicate.User

PhotoURLHasSuffix applies the HasSuffix predicate on the "PhotoURL" field.

func PhotoURLIn

func PhotoURLIn(vs ...string) predicate.User

PhotoURLIn applies the In predicate on the "PhotoURL" field.

func PhotoURLLT

func PhotoURLLT(v string) predicate.User

PhotoURLLT applies the LT predicate on the "PhotoURL" field.

func PhotoURLLTE

func PhotoURLLTE(v string) predicate.User

PhotoURLLTE applies the LTE predicate on the "PhotoURL" field.

func PhotoURLNEQ

func PhotoURLNEQ(v string) predicate.User

PhotoURLNEQ applies the NEQ predicate on the "PhotoURL" field.

func PhotoURLNotIn

func PhotoURLNotIn(vs ...string) predicate.User

PhotoURLNotIn applies the NotIn predicate on the "PhotoURL" field.

func SessionToken

func SessionToken(v string) predicate.User

SessionToken applies equality check predicate on the "SessionToken" field. It's identical to SessionTokenEQ.

func SessionTokenContains

func SessionTokenContains(v string) predicate.User

SessionTokenContains applies the Contains predicate on the "SessionToken" field.

func SessionTokenContainsFold

func SessionTokenContainsFold(v string) predicate.User

SessionTokenContainsFold applies the ContainsFold predicate on the "SessionToken" field.

func SessionTokenEQ

func SessionTokenEQ(v string) predicate.User

SessionTokenEQ applies the EQ predicate on the "SessionToken" field.

func SessionTokenEqualFold

func SessionTokenEqualFold(v string) predicate.User

SessionTokenEqualFold applies the EqualFold predicate on the "SessionToken" field.

func SessionTokenGT

func SessionTokenGT(v string) predicate.User

SessionTokenGT applies the GT predicate on the "SessionToken" field.

func SessionTokenGTE

func SessionTokenGTE(v string) predicate.User

SessionTokenGTE applies the GTE predicate on the "SessionToken" field.

func SessionTokenHasPrefix

func SessionTokenHasPrefix(v string) predicate.User

SessionTokenHasPrefix applies the HasPrefix predicate on the "SessionToken" field.

func SessionTokenHasSuffix

func SessionTokenHasSuffix(v string) predicate.User

SessionTokenHasSuffix applies the HasSuffix predicate on the "SessionToken" field.

func SessionTokenIn

func SessionTokenIn(vs ...string) predicate.User

SessionTokenIn applies the In predicate on the "SessionToken" field.

func SessionTokenIsNil

func SessionTokenIsNil() predicate.User

SessionTokenIsNil applies the IsNil predicate on the "SessionToken" field.

func SessionTokenLT

func SessionTokenLT(v string) predicate.User

SessionTokenLT applies the LT predicate on the "SessionToken" field.

func SessionTokenLTE

func SessionTokenLTE(v string) predicate.User

SessionTokenLTE applies the LTE predicate on the "SessionToken" field.

func SessionTokenNEQ

func SessionTokenNEQ(v string) predicate.User

SessionTokenNEQ applies the NEQ predicate on the "SessionToken" field.

func SessionTokenNotIn

func SessionTokenNotIn(vs ...string) predicate.User

SessionTokenNotIn applies the NotIn predicate on the "SessionToken" field.

func SessionTokenNotNil

func SessionTokenNotNil() predicate.User

SessionTokenNotNil applies the NotNil predicate on the "SessionToken" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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