session

package
v0.0.0-...-6edac6f Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the session type in the database.
	Label = "session"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNewUser holds the string denoting the new_user field in the database.
	FieldNewUser = "new_user"
	// FieldIsUnique holds the string denoting the is_unique field in the database.
	FieldIsUnique = "is_unique"
	// FieldIsBounce holds the string denoting the is_bounce field in the database.
	FieldIsBounce = "is_bounce"
	// FieldIsFinished holds the string denoting the is_finished field in the database.
	FieldIsFinished = "is_finished"
	// FieldDuration holds the string denoting the duration field in the database.
	FieldDuration = "duration"
	// FieldStartedAt holds the string denoting the started_at field in the database.
	FieldStartedAt = "started_at"
	// FieldFinishedAt holds the string denoting the finished_at field in the database.
	FieldFinishedAt = "finished_at"

	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"

	// Table holds the table name of the session in the database.
	Table = "sessions"
	// 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 = "event_session"
)

Variables

Columns holds all SQL columns for session fields.

Functions

func And

func And(predicates ...predicate.Session) predicate.Session

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

func Duration

func Duration(v int) predicate.Session

Duration applies equality check predicate on the "duration" field. It's identical to DurationEQ.

func DurationEQ

func DurationEQ(v int) predicate.Session

DurationEQ applies the EQ predicate on the "duration" field.

func DurationGT

func DurationGT(v int) predicate.Session

DurationGT applies the GT predicate on the "duration" field.

func DurationGTE

func DurationGTE(v int) predicate.Session

DurationGTE applies the GTE predicate on the "duration" field.

func DurationIn

func DurationIn(vs ...int) predicate.Session

DurationIn applies the In predicate on the "duration" field.

func DurationIsNil

func DurationIsNil() predicate.Session

DurationIsNil applies the IsNil predicate on the "duration" field.

func DurationLT

func DurationLT(v int) predicate.Session

DurationLT applies the LT predicate on the "duration" field.

func DurationLTE

func DurationLTE(v int) predicate.Session

DurationLTE applies the LTE predicate on the "duration" field.

func DurationNEQ

func DurationNEQ(v int) predicate.Session

DurationNEQ applies the NEQ predicate on the "duration" field.

func DurationNotIn

func DurationNotIn(vs ...int) predicate.Session

DurationNotIn applies the NotIn predicate on the "duration" field.

func DurationNotNil

func DurationNotNil() predicate.Session

DurationNotNil applies the NotNil predicate on the "duration" field.

func FinishedAt

func FinishedAt(v time.Time) predicate.Session

FinishedAt applies equality check predicate on the "finished_at" field. It's identical to FinishedAtEQ.

func FinishedAtEQ

func FinishedAtEQ(v time.Time) predicate.Session

FinishedAtEQ applies the EQ predicate on the "finished_at" field.

func FinishedAtGT

func FinishedAtGT(v time.Time) predicate.Session

FinishedAtGT applies the GT predicate on the "finished_at" field.

func FinishedAtGTE

func FinishedAtGTE(v time.Time) predicate.Session

FinishedAtGTE applies the GTE predicate on the "finished_at" field.

func FinishedAtIn

func FinishedAtIn(vs ...time.Time) predicate.Session

FinishedAtIn applies the In predicate on the "finished_at" field.

func FinishedAtIsNil

func FinishedAtIsNil() predicate.Session

FinishedAtIsNil applies the IsNil predicate on the "finished_at" field.

func FinishedAtLT

func FinishedAtLT(v time.Time) predicate.Session

FinishedAtLT applies the LT predicate on the "finished_at" field.

func FinishedAtLTE

func FinishedAtLTE(v time.Time) predicate.Session

FinishedAtLTE applies the LTE predicate on the "finished_at" field.

func FinishedAtNEQ

func FinishedAtNEQ(v time.Time) predicate.Session

FinishedAtNEQ applies the NEQ predicate on the "finished_at" field.

func FinishedAtNotIn

func FinishedAtNotIn(vs ...time.Time) predicate.Session

FinishedAtNotIn applies the NotIn predicate on the "finished_at" field.

func FinishedAtNotNil

func FinishedAtNotNil() predicate.Session

FinishedAtNotNil applies the NotNil predicate on the "finished_at" field.

func HasEvents

func HasEvents() predicate.Session

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

func HasEventsWith

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

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

func ID

func ID(id uuid.UUID) predicate.Session

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Session

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Session

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Session

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Session

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Session

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Session

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Session

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Session

IDNotIn applies the NotIn predicate on the ID field.

func IsBounce

func IsBounce(v bool) predicate.Session

IsBounce applies equality check predicate on the "is_bounce" field. It's identical to IsBounceEQ.

func IsBounceEQ

func IsBounceEQ(v bool) predicate.Session

IsBounceEQ applies the EQ predicate on the "is_bounce" field.

func IsBounceNEQ

func IsBounceNEQ(v bool) predicate.Session

IsBounceNEQ applies the NEQ predicate on the "is_bounce" field.

func IsFinished

func IsFinished(v bool) predicate.Session

IsFinished applies equality check predicate on the "is_finished" field. It's identical to IsFinishedEQ.

func IsFinishedEQ

func IsFinishedEQ(v bool) predicate.Session

IsFinishedEQ applies the EQ predicate on the "is_finished" field.

func IsFinishedNEQ

func IsFinishedNEQ(v bool) predicate.Session

IsFinishedNEQ applies the NEQ predicate on the "is_finished" field.

func IsUnique

func IsUnique(v bool) predicate.Session

IsUnique applies equality check predicate on the "is_unique" field. It's identical to IsUniqueEQ.

func IsUniqueEQ

func IsUniqueEQ(v bool) predicate.Session

IsUniqueEQ applies the EQ predicate on the "is_unique" field.

func IsUniqueNEQ

func IsUniqueNEQ(v bool) predicate.Session

IsUniqueNEQ applies the NEQ predicate on the "is_unique" field.

func NewUser

func NewUser(v bool) predicate.Session

NewUser applies equality check predicate on the "new_user" field. It's identical to NewUserEQ.

func NewUserEQ

func NewUserEQ(v bool) predicate.Session

NewUserEQ applies the EQ predicate on the "new_user" field.

func NewUserNEQ

func NewUserNEQ(v bool) predicate.Session

NewUserNEQ applies the NEQ predicate on the "new_user" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Session) predicate.Session

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

func StartedAt

func StartedAt(v time.Time) predicate.Session

StartedAt applies equality check predicate on the "started_at" field. It's identical to StartedAtEQ.

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.Session

StartedAtEQ applies the EQ predicate on the "started_at" field.

func StartedAtGT

func StartedAtGT(v time.Time) predicate.Session

StartedAtGT applies the GT predicate on the "started_at" field.

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.Session

StartedAtGTE applies the GTE predicate on the "started_at" field.

func StartedAtIn

func StartedAtIn(vs ...time.Time) predicate.Session

StartedAtIn applies the In predicate on the "started_at" field.

func StartedAtLT

func StartedAtLT(v time.Time) predicate.Session

StartedAtLT applies the LT predicate on the "started_at" field.

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.Session

StartedAtLTE applies the LTE predicate on the "started_at" field.

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.Session

StartedAtNEQ applies the NEQ predicate on the "started_at" field.

func StartedAtNotIn

func StartedAtNotIn(vs ...time.Time) predicate.Session

StartedAtNotIn applies the NotIn predicate on the "started_at" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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