notification

package
v0.0.0-...-8495beb Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the notification type in the database.
	Label = "notification"
	// 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"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldLink holds the string denoting the link field in the database.
	FieldLink = "link"
	// FieldRead holds the string denoting the read field in the database.
	FieldRead = "read"
	// EdgeSubscription holds the string denoting the subscription edge name in mutations.
	EdgeSubscription = "subscription"
	// Table holds the table name of the notification in the database.
	Table = "notifications"
	// SubscriptionTable is the table that holds the subscription relation/edge.
	SubscriptionTable = "notifications"
	// SubscriptionInverseTable is the table name for the Subscription entity.
	// It exists in this package in order to avoid circular dependency with the "subscription" package.
	SubscriptionInverseTable = "subscriptions"
	// SubscriptionColumn is the table column denoting the subscription relation/edge.
	SubscriptionColumn = "notification_subscription"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() xid.ID
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for notification fields.

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

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

Functions

func And

func And(predicates ...predicate.Notification) predicate.Notification

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Notification

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Notification

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Notification

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Notification

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Notification

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Notification

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Notification

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.Notification

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Notification

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Notification

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Notification

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Notification

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Notification

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Notification

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Notification

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Notification

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Notification

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Notification

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Notification

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Notification

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Notification

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasSubscription

func HasSubscription() predicate.Notification

HasSubscription applies the HasEdge predicate on the "subscription" edge.

func HasSubscriptionWith

func HasSubscriptionWith(preds ...predicate.Subscription) predicate.Notification

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id xid.ID) predicate.Notification

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id xid.ID) predicate.Notification

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id xid.ID) predicate.Notification

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...xid.ID) predicate.Notification

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id xid.ID) predicate.Notification

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id xid.ID) predicate.Notification

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id xid.ID) predicate.Notification

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...xid.ID) predicate.Notification

IDNotIn applies the NotIn predicate on the ID field.

Link applies equality check predicate on the "link" field. It's identical to LinkEQ.

func LinkContains

func LinkContains(v string) predicate.Notification

LinkContains applies the Contains predicate on the "link" field.

func LinkContainsFold

func LinkContainsFold(v string) predicate.Notification

LinkContainsFold applies the ContainsFold predicate on the "link" field.

func LinkEQ

func LinkEQ(v string) predicate.Notification

LinkEQ applies the EQ predicate on the "link" field.

func LinkEqualFold

func LinkEqualFold(v string) predicate.Notification

LinkEqualFold applies the EqualFold predicate on the "link" field.

func LinkGT

func LinkGT(v string) predicate.Notification

LinkGT applies the GT predicate on the "link" field.

func LinkGTE

func LinkGTE(v string) predicate.Notification

LinkGTE applies the GTE predicate on the "link" field.

func LinkHasPrefix

func LinkHasPrefix(v string) predicate.Notification

LinkHasPrefix applies the HasPrefix predicate on the "link" field.

func LinkHasSuffix

func LinkHasSuffix(v string) predicate.Notification

LinkHasSuffix applies the HasSuffix predicate on the "link" field.

func LinkIn

func LinkIn(vs ...string) predicate.Notification

LinkIn applies the In predicate on the "link" field.

func LinkLT

func LinkLT(v string) predicate.Notification

LinkLT applies the LT predicate on the "link" field.

func LinkLTE

func LinkLTE(v string) predicate.Notification

LinkLTE applies the LTE predicate on the "link" field.

func LinkNEQ

func LinkNEQ(v string) predicate.Notification

LinkNEQ applies the NEQ predicate on the "link" field.

func LinkNotIn

func LinkNotIn(vs ...string) predicate.Notification

LinkNotIn applies the NotIn predicate on the "link" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Notification) predicate.Notification

Or groups predicates with the OR operator between them.

func Read

func Read(v bool) predicate.Notification

Read applies equality check predicate on the "read" field. It's identical to ReadEQ.

func ReadEQ

func ReadEQ(v bool) predicate.Notification

ReadEQ applies the EQ predicate on the "read" field.

func ReadNEQ

func ReadNEQ(v bool) predicate.Notification

ReadNEQ applies the NEQ predicate on the "read" field.

func Title

func Title(v string) predicate.Notification

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Notification

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Notification

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Notification

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Notification

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Notification

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Notification

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Notification

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Notification

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Notification

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Notification

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Notification

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Notification

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Notification

TitleNotIn applies the NotIn predicate on the "title" 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