locker

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the locker type in the database.
	Label = "locker"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// FieldLevel holds the string denoting the level field in the database.
	FieldLevel = "level"
	// FieldEncryptedID holds the string denoting the encrypted_id field in the database.
	FieldEncryptedID = "encrypted_id"
	// FieldEncryptedBody holds the string denoting the encrypted_body field in the database.
	FieldEncryptedBody = "encrypted_body"
	// EdgeAccount holds the string denoting the account edge name in mutations.
	EdgeAccount = "account"
	// Table holds the table name of the locker in the database.
	Table = "lockers"
	// AccountTable is the table that holds the account relation/edge.
	AccountTable = "lockers"
	// AccountInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "entaccount" package.
	AccountInverseTable = "accounts"
	// AccountColumn is the table column denoting the account relation/edge.
	AccountColumn = "account"
)

Variables

Columns holds all SQL columns for locker fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the "lockers" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Locker) predicate.Locker

And groups predicates with the AND operator between them.

func EncryptedBody

func EncryptedBody(v string) predicate.Locker

EncryptedBody applies equality check predicate on the "encrypted_body" field. It's identical to EncryptedBodyEQ.

func EncryptedBodyContains

func EncryptedBodyContains(v string) predicate.Locker

EncryptedBodyContains applies the Contains predicate on the "encrypted_body" field.

func EncryptedBodyContainsFold

func EncryptedBodyContainsFold(v string) predicate.Locker

EncryptedBodyContainsFold applies the ContainsFold predicate on the "encrypted_body" field.

func EncryptedBodyEQ

func EncryptedBodyEQ(v string) predicate.Locker

EncryptedBodyEQ applies the EQ predicate on the "encrypted_body" field.

func EncryptedBodyEqualFold

func EncryptedBodyEqualFold(v string) predicate.Locker

EncryptedBodyEqualFold applies the EqualFold predicate on the "encrypted_body" field.

func EncryptedBodyGT

func EncryptedBodyGT(v string) predicate.Locker

EncryptedBodyGT applies the GT predicate on the "encrypted_body" field.

func EncryptedBodyGTE

func EncryptedBodyGTE(v string) predicate.Locker

EncryptedBodyGTE applies the GTE predicate on the "encrypted_body" field.

func EncryptedBodyHasPrefix

func EncryptedBodyHasPrefix(v string) predicate.Locker

EncryptedBodyHasPrefix applies the HasPrefix predicate on the "encrypted_body" field.

func EncryptedBodyHasSuffix

func EncryptedBodyHasSuffix(v string) predicate.Locker

EncryptedBodyHasSuffix applies the HasSuffix predicate on the "encrypted_body" field.

func EncryptedBodyIn

func EncryptedBodyIn(vs ...string) predicate.Locker

EncryptedBodyIn applies the In predicate on the "encrypted_body" field.

func EncryptedBodyLT

func EncryptedBodyLT(v string) predicate.Locker

EncryptedBodyLT applies the LT predicate on the "encrypted_body" field.

func EncryptedBodyLTE

func EncryptedBodyLTE(v string) predicate.Locker

EncryptedBodyLTE applies the LTE predicate on the "encrypted_body" field.

func EncryptedBodyNEQ

func EncryptedBodyNEQ(v string) predicate.Locker

EncryptedBodyNEQ applies the NEQ predicate on the "encrypted_body" field.

func EncryptedBodyNotIn

func EncryptedBodyNotIn(vs ...string) predicate.Locker

EncryptedBodyNotIn applies the NotIn predicate on the "encrypted_body" field.

func EncryptedID

func EncryptedID(v string) predicate.Locker

EncryptedID applies equality check predicate on the "encrypted_id" field. It's identical to EncryptedIDEQ.

func EncryptedIDContains

func EncryptedIDContains(v string) predicate.Locker

EncryptedIDContains applies the Contains predicate on the "encrypted_id" field.

func EncryptedIDContainsFold

func EncryptedIDContainsFold(v string) predicate.Locker

EncryptedIDContainsFold applies the ContainsFold predicate on the "encrypted_id" field.

func EncryptedIDEQ

func EncryptedIDEQ(v string) predicate.Locker

EncryptedIDEQ applies the EQ predicate on the "encrypted_id" field.

func EncryptedIDEqualFold

func EncryptedIDEqualFold(v string) predicate.Locker

EncryptedIDEqualFold applies the EqualFold predicate on the "encrypted_id" field.

func EncryptedIDGT

func EncryptedIDGT(v string) predicate.Locker

EncryptedIDGT applies the GT predicate on the "encrypted_id" field.

func EncryptedIDGTE

func EncryptedIDGTE(v string) predicate.Locker

EncryptedIDGTE applies the GTE predicate on the "encrypted_id" field.

func EncryptedIDHasPrefix

func EncryptedIDHasPrefix(v string) predicate.Locker

EncryptedIDHasPrefix applies the HasPrefix predicate on the "encrypted_id" field.

func EncryptedIDHasSuffix

func EncryptedIDHasSuffix(v string) predicate.Locker

EncryptedIDHasSuffix applies the HasSuffix predicate on the "encrypted_id" field.

func EncryptedIDIn

func EncryptedIDIn(vs ...string) predicate.Locker

EncryptedIDIn applies the In predicate on the "encrypted_id" field.

func EncryptedIDLT

func EncryptedIDLT(v string) predicate.Locker

EncryptedIDLT applies the LT predicate on the "encrypted_id" field.

func EncryptedIDLTE

func EncryptedIDLTE(v string) predicate.Locker

EncryptedIDLTE applies the LTE predicate on the "encrypted_id" field.

func EncryptedIDNEQ

func EncryptedIDNEQ(v string) predicate.Locker

EncryptedIDNEQ applies the NEQ predicate on the "encrypted_id" field.

func EncryptedIDNotIn

func EncryptedIDNotIn(vs ...string) predicate.Locker

EncryptedIDNotIn applies the NotIn predicate on the "encrypted_id" field.

func HasAccount

func HasAccount() predicate.Locker

HasAccount applies the HasEdge predicate on the "account" edge.

func HasAccountWith

func HasAccountWith(preds ...predicate.Account) predicate.Locker

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

func Hash

func Hash(v string) predicate.Locker

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.Locker

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.Locker

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.Locker

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.Locker

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.Locker

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.Locker

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.Locker

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.Locker

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

func HashIn(vs ...string) predicate.Locker

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.Locker

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.Locker

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.Locker

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...string) predicate.Locker

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

func ID(id int) predicate.Locker

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Locker

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Locker

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Locker

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Locker

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Locker

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Locker

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Level

func Level(v int32) predicate.Locker

Level applies equality check predicate on the "level" field. It's identical to LevelEQ.

func LevelEQ

func LevelEQ(v int32) predicate.Locker

LevelEQ applies the EQ predicate on the "level" field.

func LevelGT

func LevelGT(v int32) predicate.Locker

LevelGT applies the GT predicate on the "level" field.

func LevelGTE

func LevelGTE(v int32) predicate.Locker

LevelGTE applies the GTE predicate on the "level" field.

func LevelIn

func LevelIn(vs ...int32) predicate.Locker

LevelIn applies the In predicate on the "level" field.

func LevelLT

func LevelLT(v int32) predicate.Locker

LevelLT applies the LT predicate on the "level" field.

func LevelLTE

func LevelLTE(v int32) predicate.Locker

LevelLTE applies the LTE predicate on the "level" field.

func LevelNEQ

func LevelNEQ(v int32) predicate.Locker

LevelNEQ applies the NEQ predicate on the "level" field.

func LevelNotIn

func LevelNotIn(vs ...int32) predicate.Locker

LevelNotIn applies the NotIn predicate on the "level" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Locker) predicate.Locker

Or groups predicates with the OR operator between them.

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