devicetoken

package
v0.0.0-...-08e2f75 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the devicetoken type in the database.
	Label = "device_token"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDeviceCode holds the string denoting the device_code field in the database.
	FieldDeviceCode = "device_code"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldExpiry holds the string denoting the expiry field in the database.
	FieldExpiry = "expiry"
	// FieldLastRequest holds the string denoting the last_request field in the database.
	FieldLastRequest = "last_request"
	// FieldPollInterval holds the string denoting the poll_interval field in the database.
	FieldPollInterval = "poll_interval"
	// FieldCodeChallenge holds the string denoting the code_challenge field in the database.
	FieldCodeChallenge = "code_challenge"
	// FieldCodeChallengeMethod holds the string denoting the code_challenge_method field in the database.
	FieldCodeChallengeMethod = "code_challenge_method"
	// Table holds the table name of the devicetoken in the database.
	Table = "device_tokens"
)

Variables

View Source
var (
	// DeviceCodeValidator is a validator for the "device_code" field. It is called by the builders before save.
	DeviceCodeValidator func(string) error
	// StatusValidator is a validator for the "status" field. It is called by the builders before save.
	StatusValidator func(string) error
	// DefaultCodeChallenge holds the default value on creation for the "code_challenge" field.
	DefaultCodeChallenge string
	// DefaultCodeChallengeMethod holds the default value on creation for the "code_challenge_method" field.
	DefaultCodeChallengeMethod string
)

Columns holds all SQL columns for devicetoken fields.

Functions

func And

func And(predicates ...predicate.DeviceToken) predicate.DeviceToken

And groups predicates with the AND operator between them.

func CodeChallenge

func CodeChallenge(v string) predicate.DeviceToken

CodeChallenge applies equality check predicate on the "code_challenge" field. It's identical to CodeChallengeEQ.

func CodeChallengeContains

func CodeChallengeContains(v string) predicate.DeviceToken

CodeChallengeContains applies the Contains predicate on the "code_challenge" field.

func CodeChallengeContainsFold

func CodeChallengeContainsFold(v string) predicate.DeviceToken

CodeChallengeContainsFold applies the ContainsFold predicate on the "code_challenge" field.

func CodeChallengeEQ

func CodeChallengeEQ(v string) predicate.DeviceToken

CodeChallengeEQ applies the EQ predicate on the "code_challenge" field.

func CodeChallengeEqualFold

func CodeChallengeEqualFold(v string) predicate.DeviceToken

CodeChallengeEqualFold applies the EqualFold predicate on the "code_challenge" field.

func CodeChallengeGT

func CodeChallengeGT(v string) predicate.DeviceToken

CodeChallengeGT applies the GT predicate on the "code_challenge" field.

func CodeChallengeGTE

func CodeChallengeGTE(v string) predicate.DeviceToken

CodeChallengeGTE applies the GTE predicate on the "code_challenge" field.

func CodeChallengeHasPrefix

func CodeChallengeHasPrefix(v string) predicate.DeviceToken

CodeChallengeHasPrefix applies the HasPrefix predicate on the "code_challenge" field.

func CodeChallengeHasSuffix

func CodeChallengeHasSuffix(v string) predicate.DeviceToken

CodeChallengeHasSuffix applies the HasSuffix predicate on the "code_challenge" field.

func CodeChallengeIn

func CodeChallengeIn(vs ...string) predicate.DeviceToken

CodeChallengeIn applies the In predicate on the "code_challenge" field.

func CodeChallengeLT

func CodeChallengeLT(v string) predicate.DeviceToken

CodeChallengeLT applies the LT predicate on the "code_challenge" field.

func CodeChallengeLTE

func CodeChallengeLTE(v string) predicate.DeviceToken

CodeChallengeLTE applies the LTE predicate on the "code_challenge" field.

func CodeChallengeMethod

func CodeChallengeMethod(v string) predicate.DeviceToken

CodeChallengeMethod applies equality check predicate on the "code_challenge_method" field. It's identical to CodeChallengeMethodEQ.

func CodeChallengeMethodContains

func CodeChallengeMethodContains(v string) predicate.DeviceToken

CodeChallengeMethodContains applies the Contains predicate on the "code_challenge_method" field.

func CodeChallengeMethodContainsFold

func CodeChallengeMethodContainsFold(v string) predicate.DeviceToken

CodeChallengeMethodContainsFold applies the ContainsFold predicate on the "code_challenge_method" field.

func CodeChallengeMethodEQ

func CodeChallengeMethodEQ(v string) predicate.DeviceToken

CodeChallengeMethodEQ applies the EQ predicate on the "code_challenge_method" field.

func CodeChallengeMethodEqualFold

func CodeChallengeMethodEqualFold(v string) predicate.DeviceToken

CodeChallengeMethodEqualFold applies the EqualFold predicate on the "code_challenge_method" field.

func CodeChallengeMethodGT

func CodeChallengeMethodGT(v string) predicate.DeviceToken

CodeChallengeMethodGT applies the GT predicate on the "code_challenge_method" field.

func CodeChallengeMethodGTE

func CodeChallengeMethodGTE(v string) predicate.DeviceToken

CodeChallengeMethodGTE applies the GTE predicate on the "code_challenge_method" field.

func CodeChallengeMethodHasPrefix

func CodeChallengeMethodHasPrefix(v string) predicate.DeviceToken

CodeChallengeMethodHasPrefix applies the HasPrefix predicate on the "code_challenge_method" field.

func CodeChallengeMethodHasSuffix

func CodeChallengeMethodHasSuffix(v string) predicate.DeviceToken

CodeChallengeMethodHasSuffix applies the HasSuffix predicate on the "code_challenge_method" field.

func CodeChallengeMethodIn

func CodeChallengeMethodIn(vs ...string) predicate.DeviceToken

CodeChallengeMethodIn applies the In predicate on the "code_challenge_method" field.

func CodeChallengeMethodLT

func CodeChallengeMethodLT(v string) predicate.DeviceToken

CodeChallengeMethodLT applies the LT predicate on the "code_challenge_method" field.

func CodeChallengeMethodLTE

func CodeChallengeMethodLTE(v string) predicate.DeviceToken

CodeChallengeMethodLTE applies the LTE predicate on the "code_challenge_method" field.

func CodeChallengeMethodNEQ

func CodeChallengeMethodNEQ(v string) predicate.DeviceToken

CodeChallengeMethodNEQ applies the NEQ predicate on the "code_challenge_method" field.

func CodeChallengeMethodNotIn

func CodeChallengeMethodNotIn(vs ...string) predicate.DeviceToken

CodeChallengeMethodNotIn applies the NotIn predicate on the "code_challenge_method" field.

func CodeChallengeNEQ

func CodeChallengeNEQ(v string) predicate.DeviceToken

CodeChallengeNEQ applies the NEQ predicate on the "code_challenge" field.

func CodeChallengeNotIn

func CodeChallengeNotIn(vs ...string) predicate.DeviceToken

CodeChallengeNotIn applies the NotIn predicate on the "code_challenge" field.

func DeviceCode

func DeviceCode(v string) predicate.DeviceToken

DeviceCode applies equality check predicate on the "device_code" field. It's identical to DeviceCodeEQ.

func DeviceCodeContains

func DeviceCodeContains(v string) predicate.DeviceToken

DeviceCodeContains applies the Contains predicate on the "device_code" field.

func DeviceCodeContainsFold

func DeviceCodeContainsFold(v string) predicate.DeviceToken

DeviceCodeContainsFold applies the ContainsFold predicate on the "device_code" field.

func DeviceCodeEQ

func DeviceCodeEQ(v string) predicate.DeviceToken

DeviceCodeEQ applies the EQ predicate on the "device_code" field.

func DeviceCodeEqualFold

func DeviceCodeEqualFold(v string) predicate.DeviceToken

DeviceCodeEqualFold applies the EqualFold predicate on the "device_code" field.

func DeviceCodeGT

func DeviceCodeGT(v string) predicate.DeviceToken

DeviceCodeGT applies the GT predicate on the "device_code" field.

func DeviceCodeGTE

func DeviceCodeGTE(v string) predicate.DeviceToken

DeviceCodeGTE applies the GTE predicate on the "device_code" field.

func DeviceCodeHasPrefix

func DeviceCodeHasPrefix(v string) predicate.DeviceToken

DeviceCodeHasPrefix applies the HasPrefix predicate on the "device_code" field.

func DeviceCodeHasSuffix

func DeviceCodeHasSuffix(v string) predicate.DeviceToken

DeviceCodeHasSuffix applies the HasSuffix predicate on the "device_code" field.

func DeviceCodeIn

func DeviceCodeIn(vs ...string) predicate.DeviceToken

DeviceCodeIn applies the In predicate on the "device_code" field.

func DeviceCodeLT

func DeviceCodeLT(v string) predicate.DeviceToken

DeviceCodeLT applies the LT predicate on the "device_code" field.

func DeviceCodeLTE

func DeviceCodeLTE(v string) predicate.DeviceToken

DeviceCodeLTE applies the LTE predicate on the "device_code" field.

func DeviceCodeNEQ

func DeviceCodeNEQ(v string) predicate.DeviceToken

DeviceCodeNEQ applies the NEQ predicate on the "device_code" field.

func DeviceCodeNotIn

func DeviceCodeNotIn(vs ...string) predicate.DeviceToken

DeviceCodeNotIn applies the NotIn predicate on the "device_code" field.

func Expiry

func Expiry(v time.Time) predicate.DeviceToken

Expiry applies equality check predicate on the "expiry" field. It's identical to ExpiryEQ.

func ExpiryEQ

func ExpiryEQ(v time.Time) predicate.DeviceToken

ExpiryEQ applies the EQ predicate on the "expiry" field.

func ExpiryGT

func ExpiryGT(v time.Time) predicate.DeviceToken

ExpiryGT applies the GT predicate on the "expiry" field.

func ExpiryGTE

func ExpiryGTE(v time.Time) predicate.DeviceToken

ExpiryGTE applies the GTE predicate on the "expiry" field.

func ExpiryIn

func ExpiryIn(vs ...time.Time) predicate.DeviceToken

ExpiryIn applies the In predicate on the "expiry" field.

func ExpiryLT

func ExpiryLT(v time.Time) predicate.DeviceToken

ExpiryLT applies the LT predicate on the "expiry" field.

func ExpiryLTE

func ExpiryLTE(v time.Time) predicate.DeviceToken

ExpiryLTE applies the LTE predicate on the "expiry" field.

func ExpiryNEQ

func ExpiryNEQ(v time.Time) predicate.DeviceToken

ExpiryNEQ applies the NEQ predicate on the "expiry" field.

func ExpiryNotIn

func ExpiryNotIn(vs ...time.Time) predicate.DeviceToken

ExpiryNotIn applies the NotIn predicate on the "expiry" field.

func ID

func ID(id int) predicate.DeviceToken

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.DeviceToken

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.DeviceToken

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.DeviceToken

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.DeviceToken

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.DeviceToken

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.DeviceToken

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastRequest

func LastRequest(v time.Time) predicate.DeviceToken

LastRequest applies equality check predicate on the "last_request" field. It's identical to LastRequestEQ.

func LastRequestEQ

func LastRequestEQ(v time.Time) predicate.DeviceToken

LastRequestEQ applies the EQ predicate on the "last_request" field.

func LastRequestGT

func LastRequestGT(v time.Time) predicate.DeviceToken

LastRequestGT applies the GT predicate on the "last_request" field.

func LastRequestGTE

func LastRequestGTE(v time.Time) predicate.DeviceToken

LastRequestGTE applies the GTE predicate on the "last_request" field.

func LastRequestIn

func LastRequestIn(vs ...time.Time) predicate.DeviceToken

LastRequestIn applies the In predicate on the "last_request" field.

func LastRequestLT

func LastRequestLT(v time.Time) predicate.DeviceToken

LastRequestLT applies the LT predicate on the "last_request" field.

func LastRequestLTE

func LastRequestLTE(v time.Time) predicate.DeviceToken

LastRequestLTE applies the LTE predicate on the "last_request" field.

func LastRequestNEQ

func LastRequestNEQ(v time.Time) predicate.DeviceToken

LastRequestNEQ applies the NEQ predicate on the "last_request" field.

func LastRequestNotIn

func LastRequestNotIn(vs ...time.Time) predicate.DeviceToken

LastRequestNotIn applies the NotIn predicate on the "last_request" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.DeviceToken) predicate.DeviceToken

Or groups predicates with the OR operator between them.

func PollInterval

func PollInterval(v int) predicate.DeviceToken

PollInterval applies equality check predicate on the "poll_interval" field. It's identical to PollIntervalEQ.

func PollIntervalEQ

func PollIntervalEQ(v int) predicate.DeviceToken

PollIntervalEQ applies the EQ predicate on the "poll_interval" field.

func PollIntervalGT

func PollIntervalGT(v int) predicate.DeviceToken

PollIntervalGT applies the GT predicate on the "poll_interval" field.

func PollIntervalGTE

func PollIntervalGTE(v int) predicate.DeviceToken

PollIntervalGTE applies the GTE predicate on the "poll_interval" field.

func PollIntervalIn

func PollIntervalIn(vs ...int) predicate.DeviceToken

PollIntervalIn applies the In predicate on the "poll_interval" field.

func PollIntervalLT

func PollIntervalLT(v int) predicate.DeviceToken

PollIntervalLT applies the LT predicate on the "poll_interval" field.

func PollIntervalLTE

func PollIntervalLTE(v int) predicate.DeviceToken

PollIntervalLTE applies the LTE predicate on the "poll_interval" field.

func PollIntervalNEQ

func PollIntervalNEQ(v int) predicate.DeviceToken

PollIntervalNEQ applies the NEQ predicate on the "poll_interval" field.

func PollIntervalNotIn

func PollIntervalNotIn(vs ...int) predicate.DeviceToken

PollIntervalNotIn applies the NotIn predicate on the "poll_interval" field.

func Status

func Status(v string) predicate.DeviceToken

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.DeviceToken

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.DeviceToken

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.DeviceToken

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.DeviceToken

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.DeviceToken

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.DeviceToken

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.DeviceToken

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.DeviceToken

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.DeviceToken

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.DeviceToken

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.DeviceToken

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.DeviceToken

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.DeviceToken

StatusNotIn applies the NotIn predicate on the "status" field.

func Token

func Token(v []byte) predicate.DeviceToken

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenEQ

func TokenEQ(v []byte) predicate.DeviceToken

TokenEQ applies the EQ predicate on the "token" field.

func TokenGT

func TokenGT(v []byte) predicate.DeviceToken

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v []byte) predicate.DeviceToken

TokenGTE applies the GTE predicate on the "token" field.

func TokenIn

func TokenIn(vs ...[]byte) predicate.DeviceToken

TokenIn applies the In predicate on the "token" field.

func TokenIsNil

func TokenIsNil() predicate.DeviceToken

TokenIsNil applies the IsNil predicate on the "token" field.

func TokenLT

func TokenLT(v []byte) predicate.DeviceToken

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v []byte) predicate.DeviceToken

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v []byte) predicate.DeviceToken

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...[]byte) predicate.DeviceToken

TokenNotIn applies the NotIn predicate on the "token" field.

func TokenNotNil

func TokenNotNil() predicate.DeviceToken

TokenNotNil applies the NotNil predicate on the "token" 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.

Jump to

Keyboard shortcuts

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