challenge

package
v0.0.0-...-57c7f8a Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the challenge type in the database.
	Label = "challenge"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldChallengeID holds the string denoting the challenge_id field in the database.
	FieldChallengeID = "challenge_id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldHuman holds the string denoting the human field in the database.
	FieldHuman = "human"
	// FieldMagic holds the string denoting the magic field in the database.
	FieldMagic = "magic"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"

	// Table holds the table name of the challenge in the database.
	Table = "challenges"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the create_time field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the update_time field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the update_time field.
	UpdateDefaultUpdateTime func() time.Time
	// DefaultExpiresAt holds the default value on creation for the expires_at field.
	DefaultExpiresAt func() time.Time
)

Columns holds all SQL columns for challenge fields.

Functions

func And

func And(predicates ...predicate.Challenge) predicate.Challenge

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

func ChallengeID

func ChallengeID(v string) predicate.Challenge

ChallengeID applies equality check predicate on the "challenge_id" field. It's identical to ChallengeIDEQ.

func ChallengeIDContains

func ChallengeIDContains(v string) predicate.Challenge

ChallengeIDContains applies the Contains predicate on the "challenge_id" field.

func ChallengeIDContainsFold

func ChallengeIDContainsFold(v string) predicate.Challenge

ChallengeIDContainsFold applies the ContainsFold predicate on the "challenge_id" field.

func ChallengeIDEQ

func ChallengeIDEQ(v string) predicate.Challenge

ChallengeIDEQ applies the EQ predicate on the "challenge_id" field.

func ChallengeIDEqualFold

func ChallengeIDEqualFold(v string) predicate.Challenge

ChallengeIDEqualFold applies the EqualFold predicate on the "challenge_id" field.

func ChallengeIDGT

func ChallengeIDGT(v string) predicate.Challenge

ChallengeIDGT applies the GT predicate on the "challenge_id" field.

func ChallengeIDGTE

func ChallengeIDGTE(v string) predicate.Challenge

ChallengeIDGTE applies the GTE predicate on the "challenge_id" field.

func ChallengeIDHasPrefix

func ChallengeIDHasPrefix(v string) predicate.Challenge

ChallengeIDHasPrefix applies the HasPrefix predicate on the "challenge_id" field.

func ChallengeIDHasSuffix

func ChallengeIDHasSuffix(v string) predicate.Challenge

ChallengeIDHasSuffix applies the HasSuffix predicate on the "challenge_id" field.

func ChallengeIDIn

func ChallengeIDIn(vs ...string) predicate.Challenge

ChallengeIDIn applies the In predicate on the "challenge_id" field.

func ChallengeIDLT

func ChallengeIDLT(v string) predicate.Challenge

ChallengeIDLT applies the LT predicate on the "challenge_id" field.

func ChallengeIDLTE

func ChallengeIDLTE(v string) predicate.Challenge

ChallengeIDLTE applies the LTE predicate on the "challenge_id" field.

func ChallengeIDNEQ

func ChallengeIDNEQ(v string) predicate.Challenge

ChallengeIDNEQ applies the NEQ predicate on the "challenge_id" field.

func ChallengeIDNotIn

func ChallengeIDNotIn(vs ...string) predicate.Challenge

ChallengeIDNotIn applies the NotIn predicate on the "challenge_id" field.

func CreateTime

func CreateTime(v time.Time) predicate.Challenge

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Challenge

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Challenge

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Challenge

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Challenge

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Challenge

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Challenge

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Challenge

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Challenge

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Challenge

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Challenge

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Challenge

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Challenge

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.Challenge

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Challenge

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Challenge

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Challenge

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.Challenge

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func Human

func Human(v string) predicate.Challenge

Human applies equality check predicate on the "human" field. It's identical to HumanEQ.

func HumanContains

func HumanContains(v string) predicate.Challenge

HumanContains applies the Contains predicate on the "human" field.

func HumanContainsFold

func HumanContainsFold(v string) predicate.Challenge

HumanContainsFold applies the ContainsFold predicate on the "human" field.

func HumanEQ

func HumanEQ(v string) predicate.Challenge

HumanEQ applies the EQ predicate on the "human" field.

func HumanEqualFold

func HumanEqualFold(v string) predicate.Challenge

HumanEqualFold applies the EqualFold predicate on the "human" field.

func HumanGT

func HumanGT(v string) predicate.Challenge

HumanGT applies the GT predicate on the "human" field.

func HumanGTE

func HumanGTE(v string) predicate.Challenge

HumanGTE applies the GTE predicate on the "human" field.

func HumanHasPrefix

func HumanHasPrefix(v string) predicate.Challenge

HumanHasPrefix applies the HasPrefix predicate on the "human" field.

func HumanHasSuffix

func HumanHasSuffix(v string) predicate.Challenge

HumanHasSuffix applies the HasSuffix predicate on the "human" field.

func HumanIn

func HumanIn(vs ...string) predicate.Challenge

HumanIn applies the In predicate on the "human" field.

func HumanLT

func HumanLT(v string) predicate.Challenge

HumanLT applies the LT predicate on the "human" field.

func HumanLTE

func HumanLTE(v string) predicate.Challenge

HumanLTE applies the LTE predicate on the "human" field.

func HumanNEQ

func HumanNEQ(v string) predicate.Challenge

HumanNEQ applies the NEQ predicate on the "human" field.

func HumanNotIn

func HumanNotIn(vs ...string) predicate.Challenge

HumanNotIn applies the NotIn predicate on the "human" field.

func ID

func ID(id int) predicate.Challenge

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Challenge

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Challenge

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Challenge

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Challenge

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Challenge

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Challenge

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Magic

func Magic(v string) predicate.Challenge

Magic applies equality check predicate on the "magic" field. It's identical to MagicEQ.

func MagicContains

func MagicContains(v string) predicate.Challenge

MagicContains applies the Contains predicate on the "magic" field.

func MagicContainsFold

func MagicContainsFold(v string) predicate.Challenge

MagicContainsFold applies the ContainsFold predicate on the "magic" field.

func MagicEQ

func MagicEQ(v string) predicate.Challenge

MagicEQ applies the EQ predicate on the "magic" field.

func MagicEqualFold

func MagicEqualFold(v string) predicate.Challenge

MagicEqualFold applies the EqualFold predicate on the "magic" field.

func MagicGT

func MagicGT(v string) predicate.Challenge

MagicGT applies the GT predicate on the "magic" field.

func MagicGTE

func MagicGTE(v string) predicate.Challenge

MagicGTE applies the GTE predicate on the "magic" field.

func MagicHasPrefix

func MagicHasPrefix(v string) predicate.Challenge

MagicHasPrefix applies the HasPrefix predicate on the "magic" field.

func MagicHasSuffix

func MagicHasSuffix(v string) predicate.Challenge

MagicHasSuffix applies the HasSuffix predicate on the "magic" field.

func MagicIn

func MagicIn(vs ...string) predicate.Challenge

MagicIn applies the In predicate on the "magic" field.

func MagicLT

func MagicLT(v string) predicate.Challenge

MagicLT applies the LT predicate on the "magic" field.

func MagicLTE

func MagicLTE(v string) predicate.Challenge

MagicLTE applies the LTE predicate on the "magic" field.

func MagicNEQ

func MagicNEQ(v string) predicate.Challenge

MagicNEQ applies the NEQ predicate on the "magic" field.

func MagicNotIn

func MagicNotIn(vs ...string) predicate.Challenge

MagicNotIn applies the NotIn predicate on the "magic" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Challenge) predicate.Challenge

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

func UpdateTime

func UpdateTime(v time.Time) predicate.Challenge

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Challenge

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Challenge

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Challenge

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Challenge

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Challenge

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Challenge

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Challenge

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Challenge

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func UserID

func UserID(v string) predicate.Challenge

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDContains

func UserIDContains(v string) predicate.Challenge

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.Challenge

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ

func UserIDEQ(v string) predicate.Challenge

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.Challenge

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v string) predicate.Challenge

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v string) predicate.Challenge

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.Challenge

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.Challenge

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...string) predicate.Challenge

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v string) predicate.Challenge

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v string) predicate.Challenge

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v string) predicate.Challenge

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...string) predicate.Challenge

UserIDNotIn applies the NotIn predicate on the "user_id" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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