url

package
v0.0.0-...-e58cecd Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the url type in the database.
	Label = "url"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldCurrentTimes holds the string denoting the current_times field in the database.
	FieldCurrentTimes = "current_times"
	// FieldMaxTimes holds the string denoting the max_times field in the database.
	FieldMaxTimes = "max_times"
	// FieldExpireAt holds the string denoting the expire_at field in the database.
	FieldExpireAt = "expire_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeLogs holds the string denoting the logs edge name in mutations.
	EdgeLogs = "logs"
	// Table holds the table name of the url in the database.
	Table = "url"
	// LogsTable is the table that holds the logs relation/edge.
	LogsTable = "log"
	// LogsInverseTable is the table name for the VisitLog entity.
	// It exists in this package in order to avoid circular dependency with the "visitlog" package.
	LogsInverseTable = "log"
	// LogsColumn is the table column denoting the logs relation/edge.
	LogsColumn = "url_logs"
)

Variables

View Source
var (
	// URLValidator is a validator for the "url" field. It is called by the builders before save.
	URLValidator func(string) error
	// PathValidator is a validator for the "path" field. It is called by the builders before save.
	PathValidator func(string) error
	// DefaultCurrentTimes holds the default value on creation for the "current_times" field.
	DefaultCurrentTimes int
	// DefaultMaxTimes holds the default value on creation for the "max_times" field.
	DefaultMaxTimes int
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for url fields.

Functions

func And

func And(predicates ...predicate.Url) predicate.Url

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Url

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Url

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Url

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Url

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Url

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Url

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Url

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

func CreatedAtNotIn

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

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

func CurrentTimes

func CurrentTimes(v int) predicate.Url

CurrentTimes applies equality check predicate on the "current_times" field. It's identical to CurrentTimesEQ.

func CurrentTimesEQ

func CurrentTimesEQ(v int) predicate.Url

CurrentTimesEQ applies the EQ predicate on the "current_times" field.

func CurrentTimesGT

func CurrentTimesGT(v int) predicate.Url

CurrentTimesGT applies the GT predicate on the "current_times" field.

func CurrentTimesGTE

func CurrentTimesGTE(v int) predicate.Url

CurrentTimesGTE applies the GTE predicate on the "current_times" field.

func CurrentTimesIn

func CurrentTimesIn(vs ...int) predicate.Url

CurrentTimesIn applies the In predicate on the "current_times" field.

func CurrentTimesLT

func CurrentTimesLT(v int) predicate.Url

CurrentTimesLT applies the LT predicate on the "current_times" field.

func CurrentTimesLTE

func CurrentTimesLTE(v int) predicate.Url

CurrentTimesLTE applies the LTE predicate on the "current_times" field.

func CurrentTimesNEQ

func CurrentTimesNEQ(v int) predicate.Url

CurrentTimesNEQ applies the NEQ predicate on the "current_times" field.

func CurrentTimesNotIn

func CurrentTimesNotIn(vs ...int) predicate.Url

CurrentTimesNotIn applies the NotIn predicate on the "current_times" field.

func ExpireAt

func ExpireAt(v time.Time) predicate.Url

ExpireAt applies equality check predicate on the "expire_at" field. It's identical to ExpireAtEQ.

func ExpireAtEQ

func ExpireAtEQ(v time.Time) predicate.Url

ExpireAtEQ applies the EQ predicate on the "expire_at" field.

func ExpireAtGT

func ExpireAtGT(v time.Time) predicate.Url

ExpireAtGT applies the GT predicate on the "expire_at" field.

func ExpireAtGTE

func ExpireAtGTE(v time.Time) predicate.Url

ExpireAtGTE applies the GTE predicate on the "expire_at" field.

func ExpireAtIn

func ExpireAtIn(vs ...time.Time) predicate.Url

ExpireAtIn applies the In predicate on the "expire_at" field.

func ExpireAtIsNil

func ExpireAtIsNil() predicate.Url

ExpireAtIsNil applies the IsNil predicate on the "expire_at" field.

func ExpireAtLT

func ExpireAtLT(v time.Time) predicate.Url

ExpireAtLT applies the LT predicate on the "expire_at" field.

func ExpireAtLTE

func ExpireAtLTE(v time.Time) predicate.Url

ExpireAtLTE applies the LTE predicate on the "expire_at" field.

func ExpireAtNEQ

func ExpireAtNEQ(v time.Time) predicate.Url

ExpireAtNEQ applies the NEQ predicate on the "expire_at" field.

func ExpireAtNotIn

func ExpireAtNotIn(vs ...time.Time) predicate.Url

ExpireAtNotIn applies the NotIn predicate on the "expire_at" field.

func ExpireAtNotNil

func ExpireAtNotNil() predicate.Url

ExpireAtNotNil applies the NotNil predicate on the "expire_at" field.

func HasLogs

func HasLogs() predicate.Url

HasLogs applies the HasEdge predicate on the "logs" edge.

func HasLogsWith

func HasLogsWith(preds ...predicate.VisitLog) predicate.Url

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

func ID

func ID(id int) predicate.Url

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Url

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Url

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Url

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Url

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Url

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Url

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MaxTimes

func MaxTimes(v int) predicate.Url

MaxTimes applies equality check predicate on the "max_times" field. It's identical to MaxTimesEQ.

func MaxTimesEQ

func MaxTimesEQ(v int) predicate.Url

MaxTimesEQ applies the EQ predicate on the "max_times" field.

func MaxTimesGT

func MaxTimesGT(v int) predicate.Url

MaxTimesGT applies the GT predicate on the "max_times" field.

func MaxTimesGTE

func MaxTimesGTE(v int) predicate.Url

MaxTimesGTE applies the GTE predicate on the "max_times" field.

func MaxTimesIn

func MaxTimesIn(vs ...int) predicate.Url

MaxTimesIn applies the In predicate on the "max_times" field.

func MaxTimesLT

func MaxTimesLT(v int) predicate.Url

MaxTimesLT applies the LT predicate on the "max_times" field.

func MaxTimesLTE

func MaxTimesLTE(v int) predicate.Url

MaxTimesLTE applies the LTE predicate on the "max_times" field.

func MaxTimesNEQ

func MaxTimesNEQ(v int) predicate.Url

MaxTimesNEQ applies the NEQ predicate on the "max_times" field.

func MaxTimesNotIn

func MaxTimesNotIn(vs ...int) predicate.Url

MaxTimesNotIn applies the NotIn predicate on the "max_times" field.

func Not

func Not(p predicate.Url) predicate.Url

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Url) predicate.Url

Or groups predicates with the OR operator between them.

func Path

func Path(v string) predicate.Url

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.Url

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.Url

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.Url

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.Url

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.Url

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.Url

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.Url

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.Url

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.Url

PathIn applies the In predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.Url

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.Url

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.Url

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.Url

PathNotIn applies the NotIn predicate on the "path" field.

func URL

func URL(v string) predicate.Url

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Url

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Url

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Url

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Url

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Url

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Url

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Url

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Url

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Url

URLIn applies the In predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Url

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Url

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Url

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Url

URLNotIn applies the NotIn predicate on the "url" 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