timer

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the timer type in the database.
	Label = "timer"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldFn holds the string denoting the fn field in the database.
	FieldFn = "fn"
	// FieldCron holds the string denoting the cron field in the database.
	FieldCron = "cron"
	// FieldOne holds the string denoting the one field in the database.
	FieldOne = "one"
	// FieldData holds the string denoting the data field in the database.
	FieldData = "data"
	// Table holds the table name of the timer in the database.
	Table = "timers"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// FnValidator is a validator for the "fn" field. It is called by the builders before save.
	FnValidator func(string) error
)

Columns holds all SQL columns for timer fields.

Functions

func And

func And(predicates ...predicate.Timer) predicate.Timer

And groups predicates with the AND operator between them.

func Cron

func Cron(v string) predicate.Timer

Cron applies equality check predicate on the "cron" field. It's identical to CronEQ.

func CronContains

func CronContains(v string) predicate.Timer

CronContains applies the Contains predicate on the "cron" field.

func CronContainsFold

func CronContainsFold(v string) predicate.Timer

CronContainsFold applies the ContainsFold predicate on the "cron" field.

func CronEQ

func CronEQ(v string) predicate.Timer

CronEQ applies the EQ predicate on the "cron" field.

func CronEqualFold

func CronEqualFold(v string) predicate.Timer

CronEqualFold applies the EqualFold predicate on the "cron" field.

func CronGT

func CronGT(v string) predicate.Timer

CronGT applies the GT predicate on the "cron" field.

func CronGTE

func CronGTE(v string) predicate.Timer

CronGTE applies the GTE predicate on the "cron" field.

func CronHasPrefix

func CronHasPrefix(v string) predicate.Timer

CronHasPrefix applies the HasPrefix predicate on the "cron" field.

func CronHasSuffix

func CronHasSuffix(v string) predicate.Timer

CronHasSuffix applies the HasSuffix predicate on the "cron" field.

func CronIn

func CronIn(vs ...string) predicate.Timer

CronIn applies the In predicate on the "cron" field.

func CronIsNil

func CronIsNil() predicate.Timer

CronIsNil applies the IsNil predicate on the "cron" field.

func CronLT

func CronLT(v string) predicate.Timer

CronLT applies the LT predicate on the "cron" field.

func CronLTE

func CronLTE(v string) predicate.Timer

CronLTE applies the LTE predicate on the "cron" field.

func CronNEQ

func CronNEQ(v string) predicate.Timer

CronNEQ applies the NEQ predicate on the "cron" field.

func CronNotIn

func CronNotIn(vs ...string) predicate.Timer

CronNotIn applies the NotIn predicate on the "cron" field.

func CronNotNil

func CronNotNil() predicate.Timer

CronNotNil applies the NotNil predicate on the "cron" field.

func Data

func Data(v []byte) predicate.Timer

Data applies equality check predicate on the "data" field. It's identical to DataEQ.

func DataEQ

func DataEQ(v []byte) predicate.Timer

DataEQ applies the EQ predicate on the "data" field.

func DataGT

func DataGT(v []byte) predicate.Timer

DataGT applies the GT predicate on the "data" field.

func DataGTE

func DataGTE(v []byte) predicate.Timer

DataGTE applies the GTE predicate on the "data" field.

func DataIn

func DataIn(vs ...[]byte) predicate.Timer

DataIn applies the In predicate on the "data" field.

func DataIsNil

func DataIsNil() predicate.Timer

DataIsNil applies the IsNil predicate on the "data" field.

func DataLT

func DataLT(v []byte) predicate.Timer

DataLT applies the LT predicate on the "data" field.

func DataLTE

func DataLTE(v []byte) predicate.Timer

DataLTE applies the LTE predicate on the "data" field.

func DataNEQ

func DataNEQ(v []byte) predicate.Timer

DataNEQ applies the NEQ predicate on the "data" field.

func DataNotIn

func DataNotIn(vs ...[]byte) predicate.Timer

DataNotIn applies the NotIn predicate on the "data" field.

func DataNotNil

func DataNotNil() predicate.Timer

DataNotNil applies the NotNil predicate on the "data" field.

func Fn

func Fn(v string) predicate.Timer

Fn applies equality check predicate on the "fn" field. It's identical to FnEQ.

func FnContains

func FnContains(v string) predicate.Timer

FnContains applies the Contains predicate on the "fn" field.

func FnContainsFold

func FnContainsFold(v string) predicate.Timer

FnContainsFold applies the ContainsFold predicate on the "fn" field.

func FnEQ

func FnEQ(v string) predicate.Timer

FnEQ applies the EQ predicate on the "fn" field.

func FnEqualFold

func FnEqualFold(v string) predicate.Timer

FnEqualFold applies the EqualFold predicate on the "fn" field.

func FnGT

func FnGT(v string) predicate.Timer

FnGT applies the GT predicate on the "fn" field.

func FnGTE

func FnGTE(v string) predicate.Timer

FnGTE applies the GTE predicate on the "fn" field.

func FnHasPrefix

func FnHasPrefix(v string) predicate.Timer

FnHasPrefix applies the HasPrefix predicate on the "fn" field.

func FnHasSuffix

func FnHasSuffix(v string) predicate.Timer

FnHasSuffix applies the HasSuffix predicate on the "fn" field.

func FnIn

func FnIn(vs ...string) predicate.Timer

FnIn applies the In predicate on the "fn" field.

func FnLT

func FnLT(v string) predicate.Timer

FnLT applies the LT predicate on the "fn" field.

func FnLTE

func FnLTE(v string) predicate.Timer

FnLTE applies the LTE predicate on the "fn" field.

func FnNEQ

func FnNEQ(v string) predicate.Timer

FnNEQ applies the NEQ predicate on the "fn" field.

func FnNotIn

func FnNotIn(vs ...string) predicate.Timer

FnNotIn applies the NotIn predicate on the "fn" field.

func ID

func ID(id int) predicate.Timer

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Timer

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Timer

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Timer

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Timer

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Timer

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Timer

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Timer

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Timer

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Timer

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Timer

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Timer

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Timer

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Timer

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Timer

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Timer

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Timer

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Timer

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Timer

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Timer

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Timer

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func One

func One(v time.Time) predicate.Timer

One applies equality check predicate on the "one" field. It's identical to OneEQ.

func OneEQ

func OneEQ(v time.Time) predicate.Timer

OneEQ applies the EQ predicate on the "one" field.

func OneGT

func OneGT(v time.Time) predicate.Timer

OneGT applies the GT predicate on the "one" field.

func OneGTE

func OneGTE(v time.Time) predicate.Timer

OneGTE applies the GTE predicate on the "one" field.

func OneIn

func OneIn(vs ...time.Time) predicate.Timer

OneIn applies the In predicate on the "one" field.

func OneIsNil

func OneIsNil() predicate.Timer

OneIsNil applies the IsNil predicate on the "one" field.

func OneLT

func OneLT(v time.Time) predicate.Timer

OneLT applies the LT predicate on the "one" field.

func OneLTE

func OneLTE(v time.Time) predicate.Timer

OneLTE applies the LTE predicate on the "one" field.

func OneNEQ

func OneNEQ(v time.Time) predicate.Timer

OneNEQ applies the NEQ predicate on the "one" field.

func OneNotIn

func OneNotIn(vs ...time.Time) predicate.Timer

OneNotIn applies the NotIn predicate on the "one" field.

func OneNotNil

func OneNotNil() predicate.Timer

OneNotNil applies the NotNil predicate on the "one" field.

func Or

func Or(predicates ...predicate.Timer) predicate.Timer

Or groups predicates with the OR operator between them.

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