contact

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the contact type in the database.
	Label = "contact"
	// 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"      // FieldValue holds the string denoting the value vertex property in the database.
	FieldValue       = "value"     // FieldKind holds the string denoting the kind vertex property in the database.
	FieldKind        = "kind"      // FieldPrincipal holds the string denoting the principal vertex property in the database.
	FieldPrincipal   = "principal" // FieldValidated holds the string denoting the validated vertex property in the database.
	FieldValidated   = "validated" // FieldFromAccount holds the string denoting the fromaccount vertex property in the database.
	FieldFromAccount = "from_account"

	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"

	// Table holds the table name of the contact in the database.
	Table = "contacts"
	// OwnerTable is the table the holds the owner relation/edge.
	OwnerTable = "contacts"
	// OwnerInverseTable is the table name for the Person entity.
	// It exists in this package in order to avoid circular dependency with the "person" package.
	OwnerInverseTable = "persons"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "person_contacts"
)
View Source
const DefaultKind = KindEmail

KindEmail is the default Kind.

Variables

View Source
var (
	// ValueValidator is a validator for the "value" field. It is called by the builders before save.
	ValueValidator func(string) error
	// DefaultFromAccount holds the default value on creation for the fromAccount field.
	DefaultFromAccount bool
)

Columns holds all SQL columns for contact fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the Contact type.

Functions

func And

func And(predicates ...predicate.Contact) predicate.Contact

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

func FromAccount

func FromAccount(v bool) predicate.Contact

FromAccount applies equality check predicate on the "fromAccount" field. It's identical to FromAccountEQ.

func FromAccountEQ

func FromAccountEQ(v bool) predicate.Contact

FromAccountEQ applies the EQ predicate on the "fromAccount" field.

func FromAccountNEQ

func FromAccountNEQ(v bool) predicate.Contact

FromAccountNEQ applies the NEQ predicate on the "fromAccount" field.

func HasOwner

func HasOwner() predicate.Contact

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Person) predicate.Contact

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

func ID

func ID(id uuid.UUID) predicate.Contact

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Contact

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Contact

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Contact

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Contact

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Contact

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Contact

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func KindEQ

func KindEQ(v Kind) predicate.Contact

KindEQ applies the EQ predicate on the "kind" field.

func KindIn

func KindIn(vs ...Kind) predicate.Contact

KindIn applies the In predicate on the "kind" field.

func KindNEQ

func KindNEQ(v Kind) predicate.Contact

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...Kind) predicate.Contact

KindNotIn applies the NotIn predicate on the "kind" field.

func KindValidator

func KindValidator(k Kind) error

KindValidator is a validator for the "k" field enum values. It is called by the builders before save.

func Name

func Name(v string) predicate.Contact

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

func NameContains

func NameContains(v string) predicate.Contact

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

func NameContainsFold

func NameContainsFold(v string) predicate.Contact

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

func NameEQ

func NameEQ(v string) predicate.Contact

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

func NameEqualFold

func NameEqualFold(v string) predicate.Contact

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

func NameGT

func NameGT(v string) predicate.Contact

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

func NameGTE

func NameGTE(v string) predicate.Contact

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Contact

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Contact

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Contact

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

func NameLTE

func NameLTE(v string) predicate.Contact

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

func NameNEQ

func NameNEQ(v string) predicate.Contact

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

func NameNotIn

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

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.Contact) predicate.Contact

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

func Principal

func Principal(v bool) predicate.Contact

Principal applies equality check predicate on the "principal" field. It's identical to PrincipalEQ.

func PrincipalEQ

func PrincipalEQ(v bool) predicate.Contact

PrincipalEQ applies the EQ predicate on the "principal" field.

func PrincipalNEQ

func PrincipalNEQ(v bool) predicate.Contact

PrincipalNEQ applies the NEQ predicate on the "principal" field.

func Validated

func Validated(v bool) predicate.Contact

Validated applies equality check predicate on the "validated" field. It's identical to ValidatedEQ.

func ValidatedEQ

func ValidatedEQ(v bool) predicate.Contact

ValidatedEQ applies the EQ predicate on the "validated" field.

func ValidatedNEQ

func ValidatedNEQ(v bool) predicate.Contact

ValidatedNEQ applies the NEQ predicate on the "validated" field.

func Value

func Value(v string) predicate.Contact

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueContains

func ValueContains(v string) predicate.Contact

ValueContains applies the Contains predicate on the "value" field.

func ValueContainsFold

func ValueContainsFold(v string) predicate.Contact

ValueContainsFold applies the ContainsFold predicate on the "value" field.

func ValueEQ

func ValueEQ(v string) predicate.Contact

ValueEQ applies the EQ predicate on the "value" field.

func ValueEqualFold

func ValueEqualFold(v string) predicate.Contact

ValueEqualFold applies the EqualFold predicate on the "value" field.

func ValueGT

func ValueGT(v string) predicate.Contact

ValueGT applies the GT predicate on the "value" field.

func ValueGTE

func ValueGTE(v string) predicate.Contact

ValueGTE applies the GTE predicate on the "value" field.

func ValueHasPrefix

func ValueHasPrefix(v string) predicate.Contact

ValueHasPrefix applies the HasPrefix predicate on the "value" field.

func ValueHasSuffix

func ValueHasSuffix(v string) predicate.Contact

ValueHasSuffix applies the HasSuffix predicate on the "value" field.

func ValueIn

func ValueIn(vs ...string) predicate.Contact

ValueIn applies the In predicate on the "value" field.

func ValueLT

func ValueLT(v string) predicate.Contact

ValueLT applies the LT predicate on the "value" field.

func ValueLTE

func ValueLTE(v string) predicate.Contact

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ

func ValueNEQ(v string) predicate.Contact

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn

func ValueNotIn(vs ...string) predicate.Contact

ValueNotIn applies the NotIn predicate on the "value" field.

Types

type Kind

type Kind string

Kind defines the type for the kind enum field.

const (
	KindEmail Kind = "Email"
	KindPhone Kind = "Phone"
)

Kind values.

func (Kind) String

func (s Kind) String() string

Jump to

Keyboard shortcuts

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