proxyads

package
v1.0.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the proxyads type in the database.
	Label = "proxy_ads"
	// 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"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldTargetURL holds the string denoting the target_url field in the database.
	FieldTargetURL = "target_url"
	// FieldStartTime holds the string denoting the start_time field in the database.
	FieldStartTime = "start_time"
	// FieldEndTime holds the string denoting the end_time field in the database.
	FieldEndTime = "end_time"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// 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 proxyads in the database.
	Table = "ads"
)

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
	// DefaultType holds the default value on creation for the "type" field.
	DefaultType string
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
	// DefaultTargetURL holds the default value on creation for the "target_url" field.
	DefaultTargetURL string
	// TargetURLValidator is a validator for the "target_url" field. It is called by the builders before save.
	TargetURLValidator func(string) error
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus int
	// 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 proxyads fields.

Functions

func And

func And(predicates ...predicate.ProxyAds) predicate.ProxyAds

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.ProxyAds

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

func ContentContains

func ContentContains(v string) predicate.ProxyAds

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

func ContentContainsFold

func ContentContainsFold(v string) predicate.ProxyAds

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

func ContentEQ

func ContentEQ(v string) predicate.ProxyAds

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

func ContentEqualFold

func ContentEqualFold(v string) predicate.ProxyAds

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

func ContentGT

func ContentGT(v string) predicate.ProxyAds

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

func ContentGTE

func ContentGTE(v string) predicate.ProxyAds

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

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.ProxyAds

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

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.ProxyAds

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

func ContentIn

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

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

func ContentIsNil

func ContentIsNil() predicate.ProxyAds

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

func ContentLT

func ContentLT(v string) predicate.ProxyAds

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

func ContentLTE

func ContentLTE(v string) predicate.ProxyAds

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

func ContentNEQ

func ContentNEQ(v string) predicate.ProxyAds

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

func ContentNotIn

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

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

func ContentNotNil

func ContentNotNil() predicate.ProxyAds

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

func CreatedAt

func CreatedAt(v time.Time) predicate.ProxyAds

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ProxyAds

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ProxyAds

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ProxyAds

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ProxyAds

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ProxyAds

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ProxyAds

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.ProxyAds

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

func DescriptionContains

func DescriptionContains(v string) predicate.ProxyAds

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.ProxyAds

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.ProxyAds

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.ProxyAds

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

func DescriptionGT

func DescriptionGT(v string) predicate.ProxyAds

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.ProxyAds

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.ProxyAds

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.ProxyAds

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.ProxyAds

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.ProxyAds

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.ProxyAds

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.ProxyAds

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.ProxyAds

DescriptionNotNil applies the NotNil predicate on the "description" field.

func EndTime

func EndTime(v time.Time) predicate.ProxyAds

EndTime applies equality check predicate on the "end_time" field. It's identical to EndTimeEQ.

func EndTimeEQ

func EndTimeEQ(v time.Time) predicate.ProxyAds

EndTimeEQ applies the EQ predicate on the "end_time" field.

func EndTimeGT

func EndTimeGT(v time.Time) predicate.ProxyAds

EndTimeGT applies the GT predicate on the "end_time" field.

func EndTimeGTE

func EndTimeGTE(v time.Time) predicate.ProxyAds

EndTimeGTE applies the GTE predicate on the "end_time" field.

func EndTimeIn

func EndTimeIn(vs ...time.Time) predicate.ProxyAds

EndTimeIn applies the In predicate on the "end_time" field.

func EndTimeLT

func EndTimeLT(v time.Time) predicate.ProxyAds

EndTimeLT applies the LT predicate on the "end_time" field.

func EndTimeLTE

func EndTimeLTE(v time.Time) predicate.ProxyAds

EndTimeLTE applies the LTE predicate on the "end_time" field.

func EndTimeNEQ

func EndTimeNEQ(v time.Time) predicate.ProxyAds

EndTimeNEQ applies the NEQ predicate on the "end_time" field.

func EndTimeNotIn

func EndTimeNotIn(vs ...time.Time) predicate.ProxyAds

EndTimeNotIn applies the NotIn predicate on the "end_time" field.

func ID

func ID(id int64) predicate.ProxyAds

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.ProxyAds

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.ProxyAds

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.ProxyAds

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.ProxyAds

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.ProxyAds

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.ProxyAds

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func StartTime

func StartTime(v time.Time) predicate.ProxyAds

StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.

func StartTimeEQ

func StartTimeEQ(v time.Time) predicate.ProxyAds

StartTimeEQ applies the EQ predicate on the "start_time" field.

func StartTimeGT

func StartTimeGT(v time.Time) predicate.ProxyAds

StartTimeGT applies the GT predicate on the "start_time" field.

func StartTimeGTE

func StartTimeGTE(v time.Time) predicate.ProxyAds

StartTimeGTE applies the GTE predicate on the "start_time" field.

func StartTimeIn

func StartTimeIn(vs ...time.Time) predicate.ProxyAds

StartTimeIn applies the In predicate on the "start_time" field.

func StartTimeLT

func StartTimeLT(v time.Time) predicate.ProxyAds

StartTimeLT applies the LT predicate on the "start_time" field.

func StartTimeLTE

func StartTimeLTE(v time.Time) predicate.ProxyAds

StartTimeLTE applies the LTE predicate on the "start_time" field.

func StartTimeNEQ

func StartTimeNEQ(v time.Time) predicate.ProxyAds

StartTimeNEQ applies the NEQ predicate on the "start_time" field.

func StartTimeNotIn

func StartTimeNotIn(vs ...time.Time) predicate.ProxyAds

StartTimeNotIn applies the NotIn predicate on the "start_time" field.

func Status

func Status(v int) predicate.ProxyAds

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v int) predicate.ProxyAds

StatusEQ applies the EQ predicate on the "status" field.

func StatusGT

func StatusGT(v int) predicate.ProxyAds

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v int) predicate.ProxyAds

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...int) predicate.ProxyAds

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v int) predicate.ProxyAds

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v int) predicate.ProxyAds

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v int) predicate.ProxyAds

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...int) predicate.ProxyAds

StatusNotIn applies the NotIn predicate on the "status" field.

func TargetURL

func TargetURL(v string) predicate.ProxyAds

TargetURL applies equality check predicate on the "target_url" field. It's identical to TargetURLEQ.

func TargetURLContains

func TargetURLContains(v string) predicate.ProxyAds

TargetURLContains applies the Contains predicate on the "target_url" field.

func TargetURLContainsFold

func TargetURLContainsFold(v string) predicate.ProxyAds

TargetURLContainsFold applies the ContainsFold predicate on the "target_url" field.

func TargetURLEQ

func TargetURLEQ(v string) predicate.ProxyAds

TargetURLEQ applies the EQ predicate on the "target_url" field.

func TargetURLEqualFold

func TargetURLEqualFold(v string) predicate.ProxyAds

TargetURLEqualFold applies the EqualFold predicate on the "target_url" field.

func TargetURLGT

func TargetURLGT(v string) predicate.ProxyAds

TargetURLGT applies the GT predicate on the "target_url" field.

func TargetURLGTE

func TargetURLGTE(v string) predicate.ProxyAds

TargetURLGTE applies the GTE predicate on the "target_url" field.

func TargetURLHasPrefix

func TargetURLHasPrefix(v string) predicate.ProxyAds

TargetURLHasPrefix applies the HasPrefix predicate on the "target_url" field.

func TargetURLHasSuffix

func TargetURLHasSuffix(v string) predicate.ProxyAds

TargetURLHasSuffix applies the HasSuffix predicate on the "target_url" field.

func TargetURLIn

func TargetURLIn(vs ...string) predicate.ProxyAds

TargetURLIn applies the In predicate on the "target_url" field.

func TargetURLLT

func TargetURLLT(v string) predicate.ProxyAds

TargetURLLT applies the LT predicate on the "target_url" field.

func TargetURLLTE

func TargetURLLTE(v string) predicate.ProxyAds

TargetURLLTE applies the LTE predicate on the "target_url" field.

func TargetURLNEQ

func TargetURLNEQ(v string) predicate.ProxyAds

TargetURLNEQ applies the NEQ predicate on the "target_url" field.

func TargetURLNotIn

func TargetURLNotIn(vs ...string) predicate.ProxyAds

TargetURLNotIn applies the NotIn predicate on the "target_url" field.

func Title

func Title(v string) predicate.ProxyAds

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

func TitleContains

func TitleContains(v string) predicate.ProxyAds

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.ProxyAds

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

func TitleEQ

func TitleEQ(v string) predicate.ProxyAds

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.ProxyAds

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

func TitleGT

func TitleGT(v string) predicate.ProxyAds

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

func TitleGTE

func TitleGTE(v string) predicate.ProxyAds

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.ProxyAds

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.ProxyAds

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

func TitleIn

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

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

func TitleLT

func TitleLT(v string) predicate.ProxyAds

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

func TitleLTE

func TitleLTE(v string) predicate.ProxyAds

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

func TitleNEQ

func TitleNEQ(v string) predicate.ProxyAds

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

func TitleNotIn

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

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

func Type

func Type(v string) predicate.ProxyAds

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.ProxyAds

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.ProxyAds

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.ProxyAds

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.ProxyAds

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.ProxyAds

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.ProxyAds

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.ProxyAds

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.ProxyAds

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.ProxyAds

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.ProxyAds

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.ProxyAds

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.ProxyAds

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.ProxyAds

TypeNotIn applies the NotIn predicate on the "type" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ProxyAds

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ProxyAds

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ProxyAds

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ProxyAds

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ProxyAds

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ProxyAds

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ProxyAds

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

func UpdatedAtNotIn

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

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 ProxyAds 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 ByDescription

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

ByDescription orders the results by the description field.

func ByEndTime

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

ByEndTime orders the results by the end_time field.

func ByID

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

ByID orders the results by the id field.

func ByStartTime

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

ByStartTime orders the results by the start_time field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTargetURL

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

ByTargetURL orders the results by the target_url field.

func ByTitle

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

ByTitle orders the results by the title field.

func ByType

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

ByType orders the results by the type 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