did

package
v0.0.0-...-676a5ae Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the did type in the database.
	Label = "did"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldJwk holds the string denoting the jwk field in the database.
	FieldJwk = "jwk"
	// FieldPem holds the string denoting the pem field in the database.
	FieldPem = "pem"
	// FieldMethod holds the string denoting the method field in the database.
	FieldMethod = "method"
	// FieldAlg holds the string denoting the alg field in the database.
	FieldAlg = "alg"
	// FieldKeyusage holds the string denoting the keyusage field in the database.
	FieldKeyusage = "keyusage"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the did in the database.
	Table = "di_ds"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "di_ds"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_dids"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for did fields.

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

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

Functions

func Alg

func Alg(v string) predicate.DID

Alg applies equality check predicate on the "alg" field. It's identical to AlgEQ.

func AlgContains

func AlgContains(v string) predicate.DID

AlgContains applies the Contains predicate on the "alg" field.

func AlgContainsFold

func AlgContainsFold(v string) predicate.DID

AlgContainsFold applies the ContainsFold predicate on the "alg" field.

func AlgEQ

func AlgEQ(v string) predicate.DID

AlgEQ applies the EQ predicate on the "alg" field.

func AlgEqualFold

func AlgEqualFold(v string) predicate.DID

AlgEqualFold applies the EqualFold predicate on the "alg" field.

func AlgGT

func AlgGT(v string) predicate.DID

AlgGT applies the GT predicate on the "alg" field.

func AlgGTE

func AlgGTE(v string) predicate.DID

AlgGTE applies the GTE predicate on the "alg" field.

func AlgHasPrefix

func AlgHasPrefix(v string) predicate.DID

AlgHasPrefix applies the HasPrefix predicate on the "alg" field.

func AlgHasSuffix

func AlgHasSuffix(v string) predicate.DID

AlgHasSuffix applies the HasSuffix predicate on the "alg" field.

func AlgIn

func AlgIn(vs ...string) predicate.DID

AlgIn applies the In predicate on the "alg" field.

func AlgLT

func AlgLT(v string) predicate.DID

AlgLT applies the LT predicate on the "alg" field.

func AlgLTE

func AlgLTE(v string) predicate.DID

AlgLTE applies the LTE predicate on the "alg" field.

func AlgNEQ

func AlgNEQ(v string) predicate.DID

AlgNEQ applies the NEQ predicate on the "alg" field.

func AlgNotIn

func AlgNotIn(vs ...string) predicate.DID

AlgNotIn applies the NotIn predicate on the "alg" field.

func And

func And(predicates ...predicate.DID) predicate.DID

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.DID

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.DID

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.DID

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.DID

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.DID

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.DID

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.DID

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.DID

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.DID

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasUser

func HasUser() predicate.DID

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.DID

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

func ID

func ID(id string) predicate.DID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.DID

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.DID

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.DID

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.DID

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.DID

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.DID

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.DID

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.DID

IDNotIn applies the NotIn predicate on the ID field.

func Jwk

func Jwk(v []byte) predicate.DID

Jwk applies equality check predicate on the "jwk" field. It's identical to JwkEQ.

func JwkEQ

func JwkEQ(v []byte) predicate.DID

JwkEQ applies the EQ predicate on the "jwk" field.

func JwkGT

func JwkGT(v []byte) predicate.DID

JwkGT applies the GT predicate on the "jwk" field.

func JwkGTE

func JwkGTE(v []byte) predicate.DID

JwkGTE applies the GTE predicate on the "jwk" field.

func JwkIn

func JwkIn(vs ...[]byte) predicate.DID

JwkIn applies the In predicate on the "jwk" field.

func JwkLT

func JwkLT(v []byte) predicate.DID

JwkLT applies the LT predicate on the "jwk" field.

func JwkLTE

func JwkLTE(v []byte) predicate.DID

JwkLTE applies the LTE predicate on the "jwk" field.

func JwkNEQ

func JwkNEQ(v []byte) predicate.DID

JwkNEQ applies the NEQ predicate on the "jwk" field.

func JwkNotIn

func JwkNotIn(vs ...[]byte) predicate.DID

JwkNotIn applies the NotIn predicate on the "jwk" field.

func Keyusage

func Keyusage(v string) predicate.DID

Keyusage applies equality check predicate on the "keyusage" field. It's identical to KeyusageEQ.

func KeyusageContains

func KeyusageContains(v string) predicate.DID

KeyusageContains applies the Contains predicate on the "keyusage" field.

func KeyusageContainsFold

func KeyusageContainsFold(v string) predicate.DID

KeyusageContainsFold applies the ContainsFold predicate on the "keyusage" field.

func KeyusageEQ

func KeyusageEQ(v string) predicate.DID

KeyusageEQ applies the EQ predicate on the "keyusage" field.

func KeyusageEqualFold

func KeyusageEqualFold(v string) predicate.DID

KeyusageEqualFold applies the EqualFold predicate on the "keyusage" field.

func KeyusageGT

func KeyusageGT(v string) predicate.DID

KeyusageGT applies the GT predicate on the "keyusage" field.

func KeyusageGTE

func KeyusageGTE(v string) predicate.DID

KeyusageGTE applies the GTE predicate on the "keyusage" field.

func KeyusageHasPrefix

func KeyusageHasPrefix(v string) predicate.DID

KeyusageHasPrefix applies the HasPrefix predicate on the "keyusage" field.

func KeyusageHasSuffix

func KeyusageHasSuffix(v string) predicate.DID

KeyusageHasSuffix applies the HasSuffix predicate on the "keyusage" field.

func KeyusageIn

func KeyusageIn(vs ...string) predicate.DID

KeyusageIn applies the In predicate on the "keyusage" field.

func KeyusageLT

func KeyusageLT(v string) predicate.DID

KeyusageLT applies the LT predicate on the "keyusage" field.

func KeyusageLTE

func KeyusageLTE(v string) predicate.DID

KeyusageLTE applies the LTE predicate on the "keyusage" field.

func KeyusageNEQ

func KeyusageNEQ(v string) predicate.DID

KeyusageNEQ applies the NEQ predicate on the "keyusage" field.

func KeyusageNotIn

func KeyusageNotIn(vs ...string) predicate.DID

KeyusageNotIn applies the NotIn predicate on the "keyusage" field.

func Method

func Method(v string) predicate.DID

Method applies equality check predicate on the "method" field. It's identical to MethodEQ.

func MethodContains

func MethodContains(v string) predicate.DID

MethodContains applies the Contains predicate on the "method" field.

func MethodContainsFold

func MethodContainsFold(v string) predicate.DID

MethodContainsFold applies the ContainsFold predicate on the "method" field.

func MethodEQ

func MethodEQ(v string) predicate.DID

MethodEQ applies the EQ predicate on the "method" field.

func MethodEqualFold

func MethodEqualFold(v string) predicate.DID

MethodEqualFold applies the EqualFold predicate on the "method" field.

func MethodGT

func MethodGT(v string) predicate.DID

MethodGT applies the GT predicate on the "method" field.

func MethodGTE

func MethodGTE(v string) predicate.DID

MethodGTE applies the GTE predicate on the "method" field.

func MethodHasPrefix

func MethodHasPrefix(v string) predicate.DID

MethodHasPrefix applies the HasPrefix predicate on the "method" field.

func MethodHasSuffix

func MethodHasSuffix(v string) predicate.DID

MethodHasSuffix applies the HasSuffix predicate on the "method" field.

func MethodIn

func MethodIn(vs ...string) predicate.DID

MethodIn applies the In predicate on the "method" field.

func MethodIsNil

func MethodIsNil() predicate.DID

MethodIsNil applies the IsNil predicate on the "method" field.

func MethodLT

func MethodLT(v string) predicate.DID

MethodLT applies the LT predicate on the "method" field.

func MethodLTE

func MethodLTE(v string) predicate.DID

MethodLTE applies the LTE predicate on the "method" field.

func MethodNEQ

func MethodNEQ(v string) predicate.DID

MethodNEQ applies the NEQ predicate on the "method" field.

func MethodNotIn

func MethodNotIn(vs ...string) predicate.DID

MethodNotIn applies the NotIn predicate on the "method" field.

func MethodNotNil

func MethodNotNil() predicate.DID

MethodNotNil applies the NotNil predicate on the "method" field.

func Not

func Not(p predicate.DID) predicate.DID

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.DID) predicate.DID

Or groups predicates with the OR operator between them.

func Pem

func Pem(v []byte) predicate.DID

Pem applies equality check predicate on the "pem" field. It's identical to PemEQ.

func PemEQ

func PemEQ(v []byte) predicate.DID

PemEQ applies the EQ predicate on the "pem" field.

func PemGT

func PemGT(v []byte) predicate.DID

PemGT applies the GT predicate on the "pem" field.

func PemGTE

func PemGTE(v []byte) predicate.DID

PemGTE applies the GTE predicate on the "pem" field.

func PemIn

func PemIn(vs ...[]byte) predicate.DID

PemIn applies the In predicate on the "pem" field.

func PemLT

func PemLT(v []byte) predicate.DID

PemLT applies the LT predicate on the "pem" field.

func PemLTE

func PemLTE(v []byte) predicate.DID

PemLTE applies the LTE predicate on the "pem" field.

func PemNEQ

func PemNEQ(v []byte) predicate.DID

PemNEQ applies the NEQ predicate on the "pem" field.

func PemNotIn

func PemNotIn(vs ...[]byte) predicate.DID

PemNotIn applies the NotIn predicate on the "pem" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.DID

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.DID

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.DID

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.DID

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.DID

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.DID

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.DID

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.DID

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.DID

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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