domain

package
v0.0.0-...-444ad2e Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the domain type in the database.
	Label = "domain"
	// FieldID holds the string denoting the id field in the database.
	FieldID       = "id"       // FieldName holds the string denoting the name vertex property in the database.
	FieldName     = "name"     // FieldEmail holds the string denoting the email vertex property in the database.
	FieldEmail    = "email"    // FieldDomain holds the string denoting the domain vertex property in the database.
	FieldDomain   = "domain"   // FieldCallback holds the string denoting the callback vertex property in the database.
	FieldCallback = "callback" // FieldTags holds the string denoting the tags vertex property in the database.
	FieldTags     = "tags"

	// EdgeSurveys holds the string denoting the surveys edge name in mutations.
	EdgeSurveys = "surveys"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// EdgeAdmins holds the string denoting the admins edge name in mutations.
	EdgeAdmins = "admins"

	// Table holds the table name of the domain in the database.
	Table = "domains"
	// SurveysTable is the table the holds the surveys relation/edge.
	SurveysTable = "surveys"
	// SurveysInverseTable is the table name for the Survey entity.
	// It exists in this package in order to avoid circular dependency with the "survey" package.
	SurveysInverseTable = "surveys"
	// SurveysColumn is the table column denoting the surveys relation/edge.
	SurveysColumn = "domain_surveys"
	// UsersTable is the table the holds the users relation/edge. The primary key declared below.
	UsersTable = "domain_users"
	// UsersInverseTable is the table name for the Person entity.
	// It exists in this package in order to avoid circular dependency with the "person" package.
	UsersInverseTable = "persons"
	// AdminsTable is the table the holds the admins relation/edge. The primary key declared below.
	AdminsTable = "domain_admins"
	// AdminsInverseTable is the table name for the Person entity.
	// It exists in this package in order to avoid circular dependency with the "person" package.
	AdminsInverseTable = "persons"
)

Variables

View Source
var (
	// UsersPrimaryKey and UsersColumn2 are the table columns denoting the
	// primary key for the users relation (M2M).
	UsersPrimaryKey = []string{"domain_id", "person_id"}
	// AdminsPrimaryKey and AdminsColumn2 are the table columns denoting the
	// primary key for the admins relation (M2M).
	AdminsPrimaryKey = []string{"domain_id", "person_id"}
)
View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
)

Columns holds all SQL columns for domain fields.

Functions

func And

func And(predicates ...predicate.Domain) predicate.Domain

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

func Callback

func Callback(v string) predicate.Domain

Callback applies equality check predicate on the "callback" field. It's identical to CallbackEQ.

func CallbackContains

func CallbackContains(v string) predicate.Domain

CallbackContains applies the Contains predicate on the "callback" field.

func CallbackContainsFold

func CallbackContainsFold(v string) predicate.Domain

CallbackContainsFold applies the ContainsFold predicate on the "callback" field.

func CallbackEQ

func CallbackEQ(v string) predicate.Domain

CallbackEQ applies the EQ predicate on the "callback" field.

func CallbackEqualFold

func CallbackEqualFold(v string) predicate.Domain

CallbackEqualFold applies the EqualFold predicate on the "callback" field.

func CallbackGT

func CallbackGT(v string) predicate.Domain

CallbackGT applies the GT predicate on the "callback" field.

func CallbackGTE

func CallbackGTE(v string) predicate.Domain

CallbackGTE applies the GTE predicate on the "callback" field.

func CallbackHasPrefix

func CallbackHasPrefix(v string) predicate.Domain

CallbackHasPrefix applies the HasPrefix predicate on the "callback" field.

func CallbackHasSuffix

func CallbackHasSuffix(v string) predicate.Domain

CallbackHasSuffix applies the HasSuffix predicate on the "callback" field.

func CallbackIn

func CallbackIn(vs ...string) predicate.Domain

CallbackIn applies the In predicate on the "callback" field.

func CallbackLT

func CallbackLT(v string) predicate.Domain

CallbackLT applies the LT predicate on the "callback" field.

func CallbackLTE

func CallbackLTE(v string) predicate.Domain

CallbackLTE applies the LTE predicate on the "callback" field.

func CallbackNEQ

func CallbackNEQ(v string) predicate.Domain

CallbackNEQ applies the NEQ predicate on the "callback" field.

func CallbackNotIn

func CallbackNotIn(vs ...string) predicate.Domain

CallbackNotIn applies the NotIn predicate on the "callback" field.

func Domain

func Domain(v string) predicate.Domain

Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.

func DomainContains

func DomainContains(v string) predicate.Domain

DomainContains applies the Contains predicate on the "domain" field.

func DomainContainsFold

func DomainContainsFold(v string) predicate.Domain

DomainContainsFold applies the ContainsFold predicate on the "domain" field.

func DomainEQ

func DomainEQ(v string) predicate.Domain

DomainEQ applies the EQ predicate on the "domain" field.

func DomainEqualFold

func DomainEqualFold(v string) predicate.Domain

DomainEqualFold applies the EqualFold predicate on the "domain" field.

func DomainGT

func DomainGT(v string) predicate.Domain

DomainGT applies the GT predicate on the "domain" field.

func DomainGTE

func DomainGTE(v string) predicate.Domain

DomainGTE applies the GTE predicate on the "domain" field.

func DomainHasPrefix

func DomainHasPrefix(v string) predicate.Domain

DomainHasPrefix applies the HasPrefix predicate on the "domain" field.

func DomainHasSuffix

func DomainHasSuffix(v string) predicate.Domain

DomainHasSuffix applies the HasSuffix predicate on the "domain" field.

func DomainIn

func DomainIn(vs ...string) predicate.Domain

DomainIn applies the In predicate on the "domain" field.

func DomainLT

func DomainLT(v string) predicate.Domain

DomainLT applies the LT predicate on the "domain" field.

func DomainLTE

func DomainLTE(v string) predicate.Domain

DomainLTE applies the LTE predicate on the "domain" field.

func DomainNEQ

func DomainNEQ(v string) predicate.Domain

DomainNEQ applies the NEQ predicate on the "domain" field.

func DomainNotIn

func DomainNotIn(vs ...string) predicate.Domain

DomainNotIn applies the NotIn predicate on the "domain" field.

func Email

func Email(v string) predicate.Domain

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.Domain

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Domain

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Domain

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Domain

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Domain

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Domain

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Domain

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Domain

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.Domain

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Domain

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Domain

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Domain

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.Domain

EmailNotIn applies the NotIn predicate on the "email" field.

func HasAdmins

func HasAdmins() predicate.Domain

HasAdmins applies the HasEdge predicate on the "admins" edge.

func HasAdminsWith

func HasAdminsWith(preds ...predicate.Person) predicate.Domain

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

func HasSurveys

func HasSurveys() predicate.Domain

HasSurveys applies the HasEdge predicate on the "surveys" edge.

func HasSurveysWith

func HasSurveysWith(preds ...predicate.Survey) predicate.Domain

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

func HasUsers

func HasUsers() predicate.Domain

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.Person) predicate.Domain

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

func ID

func ID(id uuid.UUID) predicate.Domain

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Domain

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Domain

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Domain

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Domain

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Domain

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Domain

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Domain

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Domain

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Domain

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Domain

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Domain

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Domain

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Domain

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Domain

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Domain

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Domain

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Domain

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Domain

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Domain

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Domain

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Domain) predicate.Domain

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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