notice

package
v0.0.0-...-b7e64b7 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the notice type in the database.
	Label = "notice"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldDiscordWebhook holds the string denoting the discord_webhook field in the database.
	FieldDiscordWebhook = "discord_webhook"
	// FieldSlackWebhook holds the string denoting the slack_webhook field in the database.
	FieldSlackWebhook = "slack_webhook"
	// FieldMail holds the string denoting the mail field in the database.
	FieldMail = "mail"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldModified holds the string denoting the modified field in the database.
	FieldModified = "modified"
	// Table holds the table name of the notice in the database.
	Table = "notices"
)

Variables

View Source
var (
	// DefaultCreated holds the default value on creation for the "created" field.
	DefaultCreated func() time.Time
	// DefaultModified holds the default value on creation for the "modified" field.
	DefaultModified func() time.Time
	// UpdateDefaultModified holds the default value on update for the "modified" field.
	UpdateDefaultModified func() time.Time
)

Columns holds all SQL columns for notice fields.

Functions

func And

func And(predicates ...predicate.Notice) predicate.Notice

And groups predicates with the AND operator between them.

func Created

func Created(v time.Time) predicate.Notice

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.Notice

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.Notice

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.Notice

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...time.Time) predicate.Notice

CreatedIn applies the In predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.Notice

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.Notice

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.Notice

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...time.Time) predicate.Notice

CreatedNotIn applies the NotIn predicate on the "created" field.

func DiscordWebhook

func DiscordWebhook(v string) predicate.Notice

DiscordWebhook applies equality check predicate on the "discord_webhook" field. It's identical to DiscordWebhookEQ.

func DiscordWebhookContains

func DiscordWebhookContains(v string) predicate.Notice

DiscordWebhookContains applies the Contains predicate on the "discord_webhook" field.

func DiscordWebhookContainsFold

func DiscordWebhookContainsFold(v string) predicate.Notice

DiscordWebhookContainsFold applies the ContainsFold predicate on the "discord_webhook" field.

func DiscordWebhookEQ

func DiscordWebhookEQ(v string) predicate.Notice

DiscordWebhookEQ applies the EQ predicate on the "discord_webhook" field.

func DiscordWebhookEqualFold

func DiscordWebhookEqualFold(v string) predicate.Notice

DiscordWebhookEqualFold applies the EqualFold predicate on the "discord_webhook" field.

func DiscordWebhookGT

func DiscordWebhookGT(v string) predicate.Notice

DiscordWebhookGT applies the GT predicate on the "discord_webhook" field.

func DiscordWebhookGTE

func DiscordWebhookGTE(v string) predicate.Notice

DiscordWebhookGTE applies the GTE predicate on the "discord_webhook" field.

func DiscordWebhookHasPrefix

func DiscordWebhookHasPrefix(v string) predicate.Notice

DiscordWebhookHasPrefix applies the HasPrefix predicate on the "discord_webhook" field.

func DiscordWebhookHasSuffix

func DiscordWebhookHasSuffix(v string) predicate.Notice

DiscordWebhookHasSuffix applies the HasSuffix predicate on the "discord_webhook" field.

func DiscordWebhookIn

func DiscordWebhookIn(vs ...string) predicate.Notice

DiscordWebhookIn applies the In predicate on the "discord_webhook" field.

func DiscordWebhookIsNil

func DiscordWebhookIsNil() predicate.Notice

DiscordWebhookIsNil applies the IsNil predicate on the "discord_webhook" field.

func DiscordWebhookLT

func DiscordWebhookLT(v string) predicate.Notice

DiscordWebhookLT applies the LT predicate on the "discord_webhook" field.

func DiscordWebhookLTE

func DiscordWebhookLTE(v string) predicate.Notice

DiscordWebhookLTE applies the LTE predicate on the "discord_webhook" field.

func DiscordWebhookNEQ

func DiscordWebhookNEQ(v string) predicate.Notice

DiscordWebhookNEQ applies the NEQ predicate on the "discord_webhook" field.

func DiscordWebhookNotIn

func DiscordWebhookNotIn(vs ...string) predicate.Notice

DiscordWebhookNotIn applies the NotIn predicate on the "discord_webhook" field.

func DiscordWebhookNotNil

func DiscordWebhookNotNil() predicate.Notice

DiscordWebhookNotNil applies the NotNil predicate on the "discord_webhook" field.

func ID

func ID(id uint32) predicate.Notice

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint32) predicate.Notice

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint32) predicate.Notice

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint32) predicate.Notice

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint32) predicate.Notice

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint32) predicate.Notice

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint32) predicate.Notice

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint32) predicate.Notice

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint32) predicate.Notice

IDNotIn applies the NotIn predicate on the ID field.

func Mail

func Mail(v string) predicate.Notice

Mail applies equality check predicate on the "mail" field. It's identical to MailEQ.

func MailContains

func MailContains(v string) predicate.Notice

MailContains applies the Contains predicate on the "mail" field.

func MailContainsFold

func MailContainsFold(v string) predicate.Notice

MailContainsFold applies the ContainsFold predicate on the "mail" field.

func MailEQ

func MailEQ(v string) predicate.Notice

MailEQ applies the EQ predicate on the "mail" field.

func MailEqualFold

func MailEqualFold(v string) predicate.Notice

MailEqualFold applies the EqualFold predicate on the "mail" field.

func MailGT

func MailGT(v string) predicate.Notice

MailGT applies the GT predicate on the "mail" field.

func MailGTE

func MailGTE(v string) predicate.Notice

MailGTE applies the GTE predicate on the "mail" field.

func MailHasPrefix

func MailHasPrefix(v string) predicate.Notice

MailHasPrefix applies the HasPrefix predicate on the "mail" field.

func MailHasSuffix

func MailHasSuffix(v string) predicate.Notice

MailHasSuffix applies the HasSuffix predicate on the "mail" field.

func MailIn

func MailIn(vs ...string) predicate.Notice

MailIn applies the In predicate on the "mail" field.

func MailIsNil

func MailIsNil() predicate.Notice

MailIsNil applies the IsNil predicate on the "mail" field.

func MailLT

func MailLT(v string) predicate.Notice

MailLT applies the LT predicate on the "mail" field.

func MailLTE

func MailLTE(v string) predicate.Notice

MailLTE applies the LTE predicate on the "mail" field.

func MailNEQ

func MailNEQ(v string) predicate.Notice

MailNEQ applies the NEQ predicate on the "mail" field.

func MailNotIn

func MailNotIn(vs ...string) predicate.Notice

MailNotIn applies the NotIn predicate on the "mail" field.

func MailNotNil

func MailNotNil() predicate.Notice

MailNotNil applies the NotNil predicate on the "mail" field.

func Modified

func Modified(v time.Time) predicate.Notice

Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.

func ModifiedEQ

func ModifiedEQ(v time.Time) predicate.Notice

ModifiedEQ applies the EQ predicate on the "modified" field.

func ModifiedGT

func ModifiedGT(v time.Time) predicate.Notice

ModifiedGT applies the GT predicate on the "modified" field.

func ModifiedGTE

func ModifiedGTE(v time.Time) predicate.Notice

ModifiedGTE applies the GTE predicate on the "modified" field.

func ModifiedIn

func ModifiedIn(vs ...time.Time) predicate.Notice

ModifiedIn applies the In predicate on the "modified" field.

func ModifiedLT

func ModifiedLT(v time.Time) predicate.Notice

ModifiedLT applies the LT predicate on the "modified" field.

func ModifiedLTE

func ModifiedLTE(v time.Time) predicate.Notice

ModifiedLTE applies the LTE predicate on the "modified" field.

func ModifiedNEQ

func ModifiedNEQ(v time.Time) predicate.Notice

ModifiedNEQ applies the NEQ predicate on the "modified" field.

func ModifiedNotIn

func ModifiedNotIn(vs ...time.Time) predicate.Notice

ModifiedNotIn applies the NotIn predicate on the "modified" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Notice) predicate.Notice

Or groups predicates with the OR operator between them.

func SlackWebhook

func SlackWebhook(v string) predicate.Notice

SlackWebhook applies equality check predicate on the "slack_webhook" field. It's identical to SlackWebhookEQ.

func SlackWebhookContains

func SlackWebhookContains(v string) predicate.Notice

SlackWebhookContains applies the Contains predicate on the "slack_webhook" field.

func SlackWebhookContainsFold

func SlackWebhookContainsFold(v string) predicate.Notice

SlackWebhookContainsFold applies the ContainsFold predicate on the "slack_webhook" field.

func SlackWebhookEQ

func SlackWebhookEQ(v string) predicate.Notice

SlackWebhookEQ applies the EQ predicate on the "slack_webhook" field.

func SlackWebhookEqualFold

func SlackWebhookEqualFold(v string) predicate.Notice

SlackWebhookEqualFold applies the EqualFold predicate on the "slack_webhook" field.

func SlackWebhookGT

func SlackWebhookGT(v string) predicate.Notice

SlackWebhookGT applies the GT predicate on the "slack_webhook" field.

func SlackWebhookGTE

func SlackWebhookGTE(v string) predicate.Notice

SlackWebhookGTE applies the GTE predicate on the "slack_webhook" field.

func SlackWebhookHasPrefix

func SlackWebhookHasPrefix(v string) predicate.Notice

SlackWebhookHasPrefix applies the HasPrefix predicate on the "slack_webhook" field.

func SlackWebhookHasSuffix

func SlackWebhookHasSuffix(v string) predicate.Notice

SlackWebhookHasSuffix applies the HasSuffix predicate on the "slack_webhook" field.

func SlackWebhookIn

func SlackWebhookIn(vs ...string) predicate.Notice

SlackWebhookIn applies the In predicate on the "slack_webhook" field.

func SlackWebhookIsNil

func SlackWebhookIsNil() predicate.Notice

SlackWebhookIsNil applies the IsNil predicate on the "slack_webhook" field.

func SlackWebhookLT

func SlackWebhookLT(v string) predicate.Notice

SlackWebhookLT applies the LT predicate on the "slack_webhook" field.

func SlackWebhookLTE

func SlackWebhookLTE(v string) predicate.Notice

SlackWebhookLTE applies the LTE predicate on the "slack_webhook" field.

func SlackWebhookNEQ

func SlackWebhookNEQ(v string) predicate.Notice

SlackWebhookNEQ applies the NEQ predicate on the "slack_webhook" field.

func SlackWebhookNotIn

func SlackWebhookNotIn(vs ...string) predicate.Notice

SlackWebhookNotIn applies the NotIn predicate on the "slack_webhook" field.

func SlackWebhookNotNil

func SlackWebhookNotNil() predicate.Notice

SlackWebhookNotNil applies the NotNil predicate on the "slack_webhook" field.

func UserID

func UserID(v uint32) predicate.Notice

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uint32) predicate.Notice

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v uint32) predicate.Notice

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v uint32) predicate.Notice

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uint32) predicate.Notice

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v uint32) predicate.Notice

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v uint32) predicate.Notice

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uint32) predicate.Notice

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uint32) predicate.Notice

UserIDNotIn applies the NotIn predicate on the "user_id" 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