feedconfig

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the feedconfig type in the database.
	Label = "feed_config"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldInternalID holds the string denoting the internal_id field in the database.
	FieldInternalID = "internal_id"
	// FieldFeedURL holds the string denoting the feed_url field in the database.
	FieldFeedURL = "feed_url"
	// FieldAuthorAccount holds the string denoting the author_account field in the database.
	FieldAuthorAccount = "author_account"
	// FieldSource holds the string denoting the source field in the database.
	FieldSource = "source"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldPullInterval holds the string denoting the pull_interval field in the database.
	FieldPullInterval = "pull_interval"
	// FieldNextPullBeginAt holds the string denoting the next_pull_begin_at field in the database.
	FieldNextPullBeginAt = "next_pull_begin_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeFeed holds the string denoting the feed edge name in mutations.
	EdgeFeed = "feed"
	// Table holds the table name of the feedconfig in the database.
	Table = "feed_configs"
	// FeedTable is the table that holds the feed relation/edge.
	FeedTable = "feeds"
	// FeedInverseTable is the table name for the Feed entity.
	// It exists in this package in order to avoid circular dependency with the "feed" package.
	FeedInverseTable = "feeds"
	// FeedColumn is the table column denoting the feed relation/edge.
	FeedColumn = "feed_config_feed"
)

Variables

View Source
var (
	// DefaultNextPullBeginAt holds the default value on creation for the "next_pull_begin_at" field.
	DefaultNextPullBeginAt 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
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for feedconfig fields.

Functions

func And

func And(predicates ...predicate.FeedConfig) predicate.FeedConfig

And groups predicates with the AND operator between them.

func AuthorAccount

func AuthorAccount(v int64) predicate.FeedConfig

AuthorAccount applies equality check predicate on the "author_account" field. It's identical to AuthorAccountEQ.

func AuthorAccountEQ

func AuthorAccountEQ(v int64) predicate.FeedConfig

AuthorAccountEQ applies the EQ predicate on the "author_account" field.

func AuthorAccountGT

func AuthorAccountGT(v int64) predicate.FeedConfig

AuthorAccountGT applies the GT predicate on the "author_account" field.

func AuthorAccountGTE

func AuthorAccountGTE(v int64) predicate.FeedConfig

AuthorAccountGTE applies the GTE predicate on the "author_account" field.

func AuthorAccountIn

func AuthorAccountIn(vs ...int64) predicate.FeedConfig

AuthorAccountIn applies the In predicate on the "author_account" field.

func AuthorAccountLT

func AuthorAccountLT(v int64) predicate.FeedConfig

AuthorAccountLT applies the LT predicate on the "author_account" field.

func AuthorAccountLTE

func AuthorAccountLTE(v int64) predicate.FeedConfig

AuthorAccountLTE applies the LTE predicate on the "author_account" field.

func AuthorAccountNEQ

func AuthorAccountNEQ(v int64) predicate.FeedConfig

AuthorAccountNEQ applies the NEQ predicate on the "author_account" field.

func AuthorAccountNotIn

func AuthorAccountNotIn(vs ...int64) predicate.FeedConfig

AuthorAccountNotIn applies the NotIn predicate on the "author_account" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.FeedConfig

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.FeedConfig

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.FeedConfig

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.FeedConfig

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.FeedConfig

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.FeedConfig

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.FeedConfig

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

func CreatedAtNotIn

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

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

func FeedURL

func FeedURL(v string) predicate.FeedConfig

FeedURL applies equality check predicate on the "feed_url" field. It's identical to FeedURLEQ.

func FeedURLContains

func FeedURLContains(v string) predicate.FeedConfig

FeedURLContains applies the Contains predicate on the "feed_url" field.

func FeedURLContainsFold

func FeedURLContainsFold(v string) predicate.FeedConfig

FeedURLContainsFold applies the ContainsFold predicate on the "feed_url" field.

func FeedURLEQ

func FeedURLEQ(v string) predicate.FeedConfig

FeedURLEQ applies the EQ predicate on the "feed_url" field.

func FeedURLEqualFold

func FeedURLEqualFold(v string) predicate.FeedConfig

FeedURLEqualFold applies the EqualFold predicate on the "feed_url" field.

func FeedURLGT

func FeedURLGT(v string) predicate.FeedConfig

FeedURLGT applies the GT predicate on the "feed_url" field.

func FeedURLGTE

func FeedURLGTE(v string) predicate.FeedConfig

FeedURLGTE applies the GTE predicate on the "feed_url" field.

func FeedURLHasPrefix

func FeedURLHasPrefix(v string) predicate.FeedConfig

FeedURLHasPrefix applies the HasPrefix predicate on the "feed_url" field.

func FeedURLHasSuffix

func FeedURLHasSuffix(v string) predicate.FeedConfig

FeedURLHasSuffix applies the HasSuffix predicate on the "feed_url" field.

func FeedURLIn

func FeedURLIn(vs ...string) predicate.FeedConfig

FeedURLIn applies the In predicate on the "feed_url" field.

func FeedURLLT

func FeedURLLT(v string) predicate.FeedConfig

FeedURLLT applies the LT predicate on the "feed_url" field.

func FeedURLLTE

func FeedURLLTE(v string) predicate.FeedConfig

FeedURLLTE applies the LTE predicate on the "feed_url" field.

func FeedURLNEQ

func FeedURLNEQ(v string) predicate.FeedConfig

FeedURLNEQ applies the NEQ predicate on the "feed_url" field.

func FeedURLNotIn

func FeedURLNotIn(vs ...string) predicate.FeedConfig

FeedURLNotIn applies the NotIn predicate on the "feed_url" field.

func HasFeed

func HasFeed() predicate.FeedConfig

HasFeed applies the HasEdge predicate on the "feed" edge.

func HasFeedWith

func HasFeedWith(preds ...predicate.Feed) predicate.FeedConfig

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

func ID

func ID(id int) predicate.FeedConfig

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.FeedConfig

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.FeedConfig

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.FeedConfig

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.FeedConfig

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.FeedConfig

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.FeedConfig

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.FeedConfig

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.FeedConfig

IDNotIn applies the NotIn predicate on the ID field.

func InternalID

func InternalID(v int64) predicate.FeedConfig

InternalID applies equality check predicate on the "internal_id" field. It's identical to InternalIDEQ.

func InternalIDEQ

func InternalIDEQ(v int64) predicate.FeedConfig

InternalIDEQ applies the EQ predicate on the "internal_id" field.

func InternalIDGT

func InternalIDGT(v int64) predicate.FeedConfig

InternalIDGT applies the GT predicate on the "internal_id" field.

func InternalIDGTE

func InternalIDGTE(v int64) predicate.FeedConfig

InternalIDGTE applies the GTE predicate on the "internal_id" field.

func InternalIDIn

func InternalIDIn(vs ...int64) predicate.FeedConfig

InternalIDIn applies the In predicate on the "internal_id" field.

func InternalIDLT

func InternalIDLT(v int64) predicate.FeedConfig

InternalIDLT applies the LT predicate on the "internal_id" field.

func InternalIDLTE

func InternalIDLTE(v int64) predicate.FeedConfig

InternalIDLTE applies the LTE predicate on the "internal_id" field.

func InternalIDNEQ

func InternalIDNEQ(v int64) predicate.FeedConfig

InternalIDNEQ applies the NEQ predicate on the "internal_id" field.

func InternalIDNotIn

func InternalIDNotIn(vs ...int64) predicate.FeedConfig

InternalIDNotIn applies the NotIn predicate on the "internal_id" field.

func NextPullBeginAt

func NextPullBeginAt(v time.Time) predicate.FeedConfig

NextPullBeginAt applies equality check predicate on the "next_pull_begin_at" field. It's identical to NextPullBeginAtEQ.

func NextPullBeginAtEQ

func NextPullBeginAtEQ(v time.Time) predicate.FeedConfig

NextPullBeginAtEQ applies the EQ predicate on the "next_pull_begin_at" field.

func NextPullBeginAtGT

func NextPullBeginAtGT(v time.Time) predicate.FeedConfig

NextPullBeginAtGT applies the GT predicate on the "next_pull_begin_at" field.

func NextPullBeginAtGTE

func NextPullBeginAtGTE(v time.Time) predicate.FeedConfig

NextPullBeginAtGTE applies the GTE predicate on the "next_pull_begin_at" field.

func NextPullBeginAtIn

func NextPullBeginAtIn(vs ...time.Time) predicate.FeedConfig

NextPullBeginAtIn applies the In predicate on the "next_pull_begin_at" field.

func NextPullBeginAtLT

func NextPullBeginAtLT(v time.Time) predicate.FeedConfig

NextPullBeginAtLT applies the LT predicate on the "next_pull_begin_at" field.

func NextPullBeginAtLTE

func NextPullBeginAtLTE(v time.Time) predicate.FeedConfig

NextPullBeginAtLTE applies the LTE predicate on the "next_pull_begin_at" field.

func NextPullBeginAtNEQ

func NextPullBeginAtNEQ(v time.Time) predicate.FeedConfig

NextPullBeginAtNEQ applies the NEQ predicate on the "next_pull_begin_at" field.

func NextPullBeginAtNotIn

func NextPullBeginAtNotIn(vs ...time.Time) predicate.FeedConfig

NextPullBeginAtNotIn applies the NotIn predicate on the "next_pull_begin_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.FeedConfig) predicate.FeedConfig

Or groups predicates with the OR operator between them.

func PullInterval

func PullInterval(v time.Duration) predicate.FeedConfig

PullInterval applies equality check predicate on the "pull_interval" field. It's identical to PullIntervalEQ.

func PullIntervalEQ

func PullIntervalEQ(v time.Duration) predicate.FeedConfig

PullIntervalEQ applies the EQ predicate on the "pull_interval" field.

func PullIntervalGT

func PullIntervalGT(v time.Duration) predicate.FeedConfig

PullIntervalGT applies the GT predicate on the "pull_interval" field.

func PullIntervalGTE

func PullIntervalGTE(v time.Duration) predicate.FeedConfig

PullIntervalGTE applies the GTE predicate on the "pull_interval" field.

func PullIntervalIn

func PullIntervalIn(vs ...time.Duration) predicate.FeedConfig

PullIntervalIn applies the In predicate on the "pull_interval" field.

func PullIntervalLT

func PullIntervalLT(v time.Duration) predicate.FeedConfig

PullIntervalLT applies the LT predicate on the "pull_interval" field.

func PullIntervalLTE

func PullIntervalLTE(v time.Duration) predicate.FeedConfig

PullIntervalLTE applies the LTE predicate on the "pull_interval" field.

func PullIntervalNEQ

func PullIntervalNEQ(v time.Duration) predicate.FeedConfig

PullIntervalNEQ applies the NEQ predicate on the "pull_interval" field.

func PullIntervalNotIn

func PullIntervalNotIn(vs ...time.Duration) predicate.FeedConfig

PullIntervalNotIn applies the NotIn predicate on the "pull_interval" field.

func SourceEQ

func SourceEQ(v Source) predicate.FeedConfig

SourceEQ applies the EQ predicate on the "source" field.

func SourceIn

func SourceIn(vs ...Source) predicate.FeedConfig

SourceIn applies the In predicate on the "source" field.

func SourceNEQ

func SourceNEQ(v Source) predicate.FeedConfig

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...Source) predicate.FeedConfig

SourceNotIn applies the NotIn predicate on the "source" field.

func SourceValidator

func SourceValidator(s Source) error

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

func StatusEQ

func StatusEQ(v Status) predicate.FeedConfig

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

func StatusIn

func StatusIn(vs ...Status) predicate.FeedConfig

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

func StatusNEQ

func StatusNEQ(v Status) predicate.FeedConfig

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

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.FeedConfig

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

func StatusValidator

func StatusValidator(s Status) error

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.FeedConfig

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.FeedConfig

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.FeedConfig

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.FeedConfig

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.FeedConfig

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.FeedConfig

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.FeedConfig

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

func UpdatedAtNotIn

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

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 Source

type Source string

Source defines the type for the "source" enum field.

const (
	SourceCommon Source = "common"
)

Source values.

func (Source) String

func (s Source) String() string

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusActive  Status = "active"
	StatusSuspend Status = "suspend"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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