Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CacheLock) predicate.CacheLock
- func ExpiredAt(v time.Time) predicate.CacheLock
- func ExpiredAtEQ(v time.Time) predicate.CacheLock
- func ExpiredAtGT(v time.Time) predicate.CacheLock
- func ExpiredAtGTE(v time.Time) predicate.CacheLock
- func ExpiredAtIn(vs ...time.Time) predicate.CacheLock
- func ExpiredAtIsNil() predicate.CacheLock
- func ExpiredAtLT(v time.Time) predicate.CacheLock
- func ExpiredAtLTE(v time.Time) predicate.CacheLock
- func ExpiredAtNEQ(v time.Time) predicate.CacheLock
- func ExpiredAtNotIn(vs ...time.Time) predicate.CacheLock
- func ExpiredAtNotNil() predicate.CacheLock
- func ID(id int) predicate.CacheLock
- func IDEQ(id int) predicate.CacheLock
- func IDGT(id int) predicate.CacheLock
- func IDGTE(id int) predicate.CacheLock
- func IDIn(ids ...int) predicate.CacheLock
- func IDLT(id int) predicate.CacheLock
- func IDLTE(id int) predicate.CacheLock
- func IDNEQ(id int) predicate.CacheLock
- func IDNotIn(ids ...int) predicate.CacheLock
- func Key(v string) predicate.CacheLock
- func KeyContains(v string) predicate.CacheLock
- func KeyContainsFold(v string) predicate.CacheLock
- func KeyEQ(v string) predicate.CacheLock
- func KeyEqualFold(v string) predicate.CacheLock
- func KeyGT(v string) predicate.CacheLock
- func KeyGTE(v string) predicate.CacheLock
- func KeyHasPrefix(v string) predicate.CacheLock
- func KeyHasSuffix(v string) predicate.CacheLock
- func KeyIn(vs ...string) predicate.CacheLock
- func KeyLT(v string) predicate.CacheLock
- func KeyLTE(v string) predicate.CacheLock
- func KeyNEQ(v string) predicate.CacheLock
- func KeyNotIn(vs ...string) predicate.CacheLock
- func Not(p predicate.CacheLock) predicate.CacheLock
- func Or(predicates ...predicate.CacheLock) predicate.CacheLock
- func Owner(v string) predicate.CacheLock
- func OwnerContains(v string) predicate.CacheLock
- func OwnerContainsFold(v string) predicate.CacheLock
- func OwnerEQ(v string) predicate.CacheLock
- func OwnerEqualFold(v string) predicate.CacheLock
- func OwnerGT(v string) predicate.CacheLock
- func OwnerGTE(v string) predicate.CacheLock
- func OwnerHasPrefix(v string) predicate.CacheLock
- func OwnerHasSuffix(v string) predicate.CacheLock
- func OwnerIn(vs ...string) predicate.CacheLock
- func OwnerLT(v string) predicate.CacheLock
- func OwnerLTE(v string) predicate.CacheLock
- func OwnerNEQ(v string) predicate.CacheLock
- func OwnerNotIn(vs ...string) predicate.CacheLock
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the cachelock type in the database. Label = "cache_lock" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldOwner holds the string denoting the owner field in the database. FieldOwner = "owner" // FieldExpiredAt holds the string denoting the expired_at field in the database. FieldExpiredAt = "expired_at" // Table holds the table name of the cachelock in the database. Table = "cache_locks" )
Variables ¶
var ( // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func(string) error // OwnerValidator is a validator for the "owner" field. It is called by the builders before save. OwnerValidator func(string) error )
var Columns = []string{ FieldID, FieldKey, FieldOwner, FieldExpiredAt, }
Columns holds all SQL columns for cachelock fields.
Functions ¶
func ExpiredAt ¶
ExpiredAt applies equality check predicate on the "expired_at" field. It's identical to ExpiredAtEQ.
func ExpiredAtEQ ¶
ExpiredAtEQ applies the EQ predicate on the "expired_at" field.
func ExpiredAtGT ¶
ExpiredAtGT applies the GT predicate on the "expired_at" field.
func ExpiredAtGTE ¶
ExpiredAtGTE applies the GTE predicate on the "expired_at" field.
func ExpiredAtIn ¶
ExpiredAtIn applies the In predicate on the "expired_at" field.
func ExpiredAtIsNil ¶
ExpiredAtIsNil applies the IsNil predicate on the "expired_at" field.
func ExpiredAtLT ¶
ExpiredAtLT applies the LT predicate on the "expired_at" field.
func ExpiredAtLTE ¶
ExpiredAtLTE applies the LTE predicate on the "expired_at" field.
func ExpiredAtNEQ ¶
ExpiredAtNEQ applies the NEQ predicate on the "expired_at" field.
func ExpiredAtNotIn ¶
ExpiredAtNotIn applies the NotIn predicate on the "expired_at" field.
func ExpiredAtNotNil ¶
ExpiredAtNotNil applies the NotNil predicate on the "expired_at" field.
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func Owner ¶
Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.
func OwnerContains ¶
OwnerContains applies the Contains predicate on the "owner" field.
func OwnerContainsFold ¶
OwnerContainsFold applies the ContainsFold predicate on the "owner" field.
func OwnerEqualFold ¶
OwnerEqualFold applies the EqualFold predicate on the "owner" field.
func OwnerHasPrefix ¶
OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.
func OwnerHasSuffix ¶
OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.
func OwnerNotIn ¶
OwnerNotIn applies the NotIn predicate on the "owner" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the CacheLock queries.
func ByExpiredAt ¶
func ByExpiredAt(opts ...sql.OrderTermOption) OrderOption
ByExpiredAt orders the results by the expired_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKey ¶
func ByKey(opts ...sql.OrderTermOption) OrderOption
ByKey orders the results by the key field.
func ByOwner ¶
func ByOwner(opts ...sql.OrderTermOption) OrderOption
ByOwner orders the results by the owner field.