Help us shape the future of Go! Take the 2026 Go Developer Survey

confirmation

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the confirmation type in the database.
	Label = "confirmation"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldWorkspaceID holds the string denoting the workspace_id field in the database.
	FieldWorkspaceID = "workspace_id"
	// FieldChannel holds the string denoting the channel field in the database.
	FieldChannel = "channel"
	// FieldDestination holds the string denoting the destination field in the database.
	FieldDestination = "destination"
	// FieldProvenance holds the string denoting the provenance field in the database.
	FieldProvenance = "provenance"
	// FieldContactID holds the string denoting the contact_id field in the database.
	FieldContactID = "contact_id"
	// EdgeWorkspace holds the string denoting the workspace edge name in mutations.
	EdgeWorkspace = "workspace"
	// EdgeContact holds the string denoting the contact edge name in mutations.
	EdgeContact = "contact"
	// Table holds the table name of the confirmation in the database.
	Table = "confirmations"
	// WorkspaceTable is the table that holds the workspace relation/edge.
	WorkspaceTable = "confirmations"
	// WorkspaceInverseTable is the table name for the Workspace entity.
	// It exists in this package in order to avoid circular dependency with the "workspace" package.
	WorkspaceInverseTable = "workspaces"
	// WorkspaceColumn is the table column denoting the workspace relation/edge.
	WorkspaceColumn = "workspace_id"
	// ContactTable is the table that holds the contact relation/edge.
	ContactTable = "confirmations"
	// ContactInverseTable is the table name for the Contact entity.
	// It exists in this package in order to avoid circular dependency with the "contact" package.
	ContactInverseTable = "contacts"
	// ContactColumn is the table column denoting the contact relation/edge.
	ContactColumn = "contact_id"
)
View Source
const DefaultChannel = ChannelEmail

ChannelEmail is the default value of the Channel enum.

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
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DestinationValidator is a validator for the "destination" field. It is called by the builders before save.
	DestinationValidator func(string) error
)

Columns holds all SQL columns for confirmation fields.

Functions

func And

func And(predicates ...predicate.Confirmation) predicate.Confirmation

And groups predicates with the AND operator between them.

func ChannelEQ

func ChannelEQ(v Channel) predicate.Confirmation

ChannelEQ applies the EQ predicate on the "channel" field.

func ChannelIn

func ChannelIn(vs ...Channel) predicate.Confirmation

ChannelIn applies the In predicate on the "channel" field.

func ChannelNEQ

func ChannelNEQ(v Channel) predicate.Confirmation

ChannelNEQ applies the NEQ predicate on the "channel" field.

func ChannelNotIn

func ChannelNotIn(vs ...Channel) predicate.Confirmation

ChannelNotIn applies the NotIn predicate on the "channel" field.

func ChannelValidator

func ChannelValidator(c Channel) error

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

func ContactID

func ContactID(v int64) predicate.Confirmation

ContactID applies equality check predicate on the "contact_id" field. It's identical to ContactIDEQ.

func ContactIDEQ

func ContactIDEQ(v int64) predicate.Confirmation

ContactIDEQ applies the EQ predicate on the "contact_id" field.

func ContactIDIn

func ContactIDIn(vs ...int64) predicate.Confirmation

ContactIDIn applies the In predicate on the "contact_id" field.

func ContactIDIsNil

func ContactIDIsNil() predicate.Confirmation

ContactIDIsNil applies the IsNil predicate on the "contact_id" field.

func ContactIDNEQ

func ContactIDNEQ(v int64) predicate.Confirmation

ContactIDNEQ applies the NEQ predicate on the "contact_id" field.

func ContactIDNotIn

func ContactIDNotIn(vs ...int64) predicate.Confirmation

ContactIDNotIn applies the NotIn predicate on the "contact_id" field.

func ContactIDNotNil

func ContactIDNotNil() predicate.Confirmation

ContactIDNotNil applies the NotNil predicate on the "contact_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Confirmation

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Confirmation

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Confirmation

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Confirmation

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Confirmation

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Confirmation

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Confirmation

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

func CreatedAtNotIn

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

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

func Destination

func Destination(v string) predicate.Confirmation

Destination applies equality check predicate on the "destination" field. It's identical to DestinationEQ.

func DestinationContains

func DestinationContains(v string) predicate.Confirmation

DestinationContains applies the Contains predicate on the "destination" field.

func DestinationContainsFold

func DestinationContainsFold(v string) predicate.Confirmation

DestinationContainsFold applies the ContainsFold predicate on the "destination" field.

func DestinationEQ

func DestinationEQ(v string) predicate.Confirmation

DestinationEQ applies the EQ predicate on the "destination" field.

func DestinationEqualFold

func DestinationEqualFold(v string) predicate.Confirmation

DestinationEqualFold applies the EqualFold predicate on the "destination" field.

func DestinationGT

func DestinationGT(v string) predicate.Confirmation

DestinationGT applies the GT predicate on the "destination" field.

func DestinationGTE

func DestinationGTE(v string) predicate.Confirmation

DestinationGTE applies the GTE predicate on the "destination" field.

func DestinationHasPrefix

func DestinationHasPrefix(v string) predicate.Confirmation

DestinationHasPrefix applies the HasPrefix predicate on the "destination" field.

func DestinationHasSuffix

func DestinationHasSuffix(v string) predicate.Confirmation

DestinationHasSuffix applies the HasSuffix predicate on the "destination" field.

func DestinationIn

func DestinationIn(vs ...string) predicate.Confirmation

DestinationIn applies the In predicate on the "destination" field.

func DestinationLT

func DestinationLT(v string) predicate.Confirmation

DestinationLT applies the LT predicate on the "destination" field.

func DestinationLTE

func DestinationLTE(v string) predicate.Confirmation

DestinationLTE applies the LTE predicate on the "destination" field.

func DestinationNEQ

func DestinationNEQ(v string) predicate.Confirmation

DestinationNEQ applies the NEQ predicate on the "destination" field.

func DestinationNotIn

func DestinationNotIn(vs ...string) predicate.Confirmation

DestinationNotIn applies the NotIn predicate on the "destination" field.

func HasContact

func HasContact() predicate.Confirmation

HasContact applies the HasEdge predicate on the "contact" edge.

func HasContactWith

func HasContactWith(preds ...predicate.Contact) predicate.Confirmation

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

func HasWorkspace

func HasWorkspace() predicate.Confirmation

HasWorkspace applies the HasEdge predicate on the "workspace" edge.

func HasWorkspaceWith

func HasWorkspaceWith(preds ...predicate.Workspace) predicate.Confirmation

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Confirmation

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Confirmation

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Confirmation

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Confirmation

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Confirmation

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Confirmation

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Confirmation

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Confirmation

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Confirmation) predicate.Confirmation

Or groups predicates with the OR operator between them.

func ProvenanceEQ

func ProvenanceEQ(v Provenance) predicate.Confirmation

ProvenanceEQ applies the EQ predicate on the "provenance" field.

func ProvenanceIn

func ProvenanceIn(vs ...Provenance) predicate.Confirmation

ProvenanceIn applies the In predicate on the "provenance" field.

func ProvenanceNEQ

func ProvenanceNEQ(v Provenance) predicate.Confirmation

ProvenanceNEQ applies the NEQ predicate on the "provenance" field.

func ProvenanceNotIn

func ProvenanceNotIn(vs ...Provenance) predicate.Confirmation

ProvenanceNotIn applies the NotIn predicate on the "provenance" field.

func ProvenanceValidator

func ProvenanceValidator(pr Provenance) error

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Confirmation

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Confirmation

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Confirmation

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Confirmation

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Confirmation

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Confirmation

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Confirmation

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

func UpdatedAtNotIn

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

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

func WorkspaceID

func WorkspaceID(v int64) predicate.Confirmation

WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.

func WorkspaceIDEQ

func WorkspaceIDEQ(v int64) predicate.Confirmation

WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.

func WorkspaceIDIn

func WorkspaceIDIn(vs ...int64) predicate.Confirmation

WorkspaceIDIn applies the In predicate on the "workspace_id" field.

func WorkspaceIDNEQ

func WorkspaceIDNEQ(v int64) predicate.Confirmation

WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.

func WorkspaceIDNotIn

func WorkspaceIDNotIn(vs ...int64) predicate.Confirmation

WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.

Types

type Channel

type Channel string

Channel defines the type for the "channel" enum field.

const (
	ChannelEmail Channel = "email"
)

Channel values.

func (Channel) String

func (c Channel) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Confirmation queries.

func ByChannel

func ByChannel(opts ...sql.OrderTermOption) OrderOption

ByChannel orders the results by the channel field.

func ByContactField

func ByContactField(field string, opts ...sql.OrderTermOption) OrderOption

ByContactField orders the results by contact field.

func ByContactID

func ByContactID(opts ...sql.OrderTermOption) OrderOption

ByContactID orders the results by the contact_id field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDestination

func ByDestination(opts ...sql.OrderTermOption) OrderOption

ByDestination orders the results by the destination field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByProvenance

func ByProvenance(opts ...sql.OrderTermOption) OrderOption

ByProvenance orders the results by the provenance field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByWorkspaceField

func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption

ByWorkspaceField orders the results by workspace field.

func ByWorkspaceID

func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption

ByWorkspaceID orders the results by the workspace_id field.

type Provenance

type Provenance string

Provenance defines the type for the "provenance" enum field.

const (
	ProvenanceDoubleOptIn   Provenance = "double_opt_in"
	ProvenanceGrandfathered Provenance = "grandfathered"
	ProvenanceImported      Provenance = "imported"
)

Provenance values.

func (Provenance) String

func (pr Provenance) String() string

Jump to

Keyboard shortcuts

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