proxyannouncement

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the proxyannouncement type in the database.
	Label = "proxy_announcement"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldShow holds the string denoting the show field in the database.
	FieldShow = "show"
	// FieldPinned holds the string denoting the pinned field in the database.
	FieldPinned = "pinned"
	// FieldPopup holds the string denoting the popup field in the database.
	FieldPopup = "popup"
	// 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"
	// Table holds the table name of the proxyannouncement in the database.
	Table = "announcement"
)

Variables

View Source
var (
	// DefaultTitle holds the default value on creation for the "title" field.
	DefaultTitle string
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// DefaultShow holds the default value on creation for the "show" field.
	DefaultShow bool
	// DefaultPinned holds the default value on creation for the "pinned" field.
	DefaultPinned bool
	// DefaultPopup holds the default value on creation for the "popup" field.
	DefaultPopup bool
	// 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
)

Columns holds all SQL columns for proxyannouncement fields.

Functions

func And

And groups predicates with the AND operator between them.

func Content

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.ProxyAnnouncement

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.ProxyAnnouncement

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.ProxyAnnouncement

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.ProxyAnnouncement

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.ProxyAnnouncement

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.ProxyAnnouncement

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.ProxyAnnouncement

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.ProxyAnnouncement

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.ProxyAnnouncement

ContentIn applies the In predicate on the "content" field.

func ContentIsNil

func ContentIsNil() predicate.ProxyAnnouncement

ContentIsNil applies the IsNil predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.ProxyAnnouncement

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.ProxyAnnouncement

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.ProxyAnnouncement

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.ProxyAnnouncement

ContentNotIn applies the NotIn predicate on the "content" field.

func ContentNotNil

func ContentNotNil() predicate.ProxyAnnouncement

ContentNotNil applies the NotNil predicate on the "content" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.ProxyAnnouncement

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ProxyAnnouncement

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ProxyAnnouncement

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ProxyAnnouncement

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ProxyAnnouncement

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ProxyAnnouncement

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ProxyAnnouncement

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

func CreatedAtNotIn

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Pinned

Pinned applies equality check predicate on the "pinned" field. It's identical to PinnedEQ.

func PinnedEQ

func PinnedEQ(v bool) predicate.ProxyAnnouncement

PinnedEQ applies the EQ predicate on the "pinned" field.

func PinnedNEQ

func PinnedNEQ(v bool) predicate.ProxyAnnouncement

PinnedNEQ applies the NEQ predicate on the "pinned" field.

Popup applies equality check predicate on the "popup" field. It's identical to PopupEQ.

func PopupEQ

func PopupEQ(v bool) predicate.ProxyAnnouncement

PopupEQ applies the EQ predicate on the "popup" field.

func PopupNEQ

func PopupNEQ(v bool) predicate.ProxyAnnouncement

PopupNEQ applies the NEQ predicate on the "popup" field.

func Show

Show applies equality check predicate on the "show" field. It's identical to ShowEQ.

func ShowEQ

ShowEQ applies the EQ predicate on the "show" field.

func ShowNEQ

func ShowNEQ(v bool) predicate.ProxyAnnouncement

ShowNEQ applies the NEQ predicate on the "show" field.

func Title

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

func TitleContains

func TitleContains(v string) predicate.ProxyAnnouncement

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.ProxyAnnouncement

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

func TitleEQ

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.ProxyAnnouncement

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

func TitleGT

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

func TitleGTE

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.ProxyAnnouncement

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.ProxyAnnouncement

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

func TitleIn

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

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

func TitleLT

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

func TitleLTE

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

func TitleNEQ

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

func TitleNotIn

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

TitleNotIn applies the NotIn predicate on the "title" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ProxyAnnouncement

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ProxyAnnouncement

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ProxyAnnouncement

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ProxyAnnouncement

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ProxyAnnouncement

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ProxyAnnouncement

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ProxyAnnouncement

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

func UpdatedAtNotIn

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

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ProxyAnnouncement queries.

func ByContent

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

ByContent orders the results by the content field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByPinned

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

ByPinned orders the results by the pinned field.

func ByPopup

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

ByPopup orders the results by the popup field.

func ByShow

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

ByShow orders the results by the show field.

func ByTitle

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

ByTitle orders the results by the title field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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