fsevent

package
v4.0.0-...-5b82330 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the fsevent type in the database.
	Label = "fs_event"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldEvent holds the string denoting the event field in the database.
	FieldEvent = "event"
	// FieldSubscriber holds the string denoting the subscriber field in the database.
	FieldSubscriber = "subscriber"
	// FieldUserFsevent holds the string denoting the user_fsevent field in the database.
	FieldUserFsevent = "user_fsevent"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the fsevent in the database.
	Table = "fs_events"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "fs_events"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_fsevent"
)

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// 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
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/cloudreve/Cloudreve/v4/ent/runtime"

Columns holds all SQL columns for fsevent fields.

Functions

func And

func And(predicates ...predicate.FsEvent) predicate.FsEvent

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.FsEvent

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.FsEvent

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.FsEvent

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.FsEvent

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.FsEvent

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.FsEvent

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.FsEvent

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.FsEvent

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.FsEvent

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.FsEvent

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.FsEvent

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.FsEvent

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.FsEvent

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.FsEvent

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.FsEvent

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.FsEvent

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.FsEvent

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.FsEvent

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Event

func Event(v string) predicate.FsEvent

Event applies equality check predicate on the "event" field. It's identical to EventEQ.

func EventContains

func EventContains(v string) predicate.FsEvent

EventContains applies the Contains predicate on the "event" field.

func EventContainsFold

func EventContainsFold(v string) predicate.FsEvent

EventContainsFold applies the ContainsFold predicate on the "event" field.

func EventEQ

func EventEQ(v string) predicate.FsEvent

EventEQ applies the EQ predicate on the "event" field.

func EventEqualFold

func EventEqualFold(v string) predicate.FsEvent

EventEqualFold applies the EqualFold predicate on the "event" field.

func EventGT

func EventGT(v string) predicate.FsEvent

EventGT applies the GT predicate on the "event" field.

func EventGTE

func EventGTE(v string) predicate.FsEvent

EventGTE applies the GTE predicate on the "event" field.

func EventHasPrefix

func EventHasPrefix(v string) predicate.FsEvent

EventHasPrefix applies the HasPrefix predicate on the "event" field.

func EventHasSuffix

func EventHasSuffix(v string) predicate.FsEvent

EventHasSuffix applies the HasSuffix predicate on the "event" field.

func EventIn

func EventIn(vs ...string) predicate.FsEvent

EventIn applies the In predicate on the "event" field.

func EventLT

func EventLT(v string) predicate.FsEvent

EventLT applies the LT predicate on the "event" field.

func EventLTE

func EventLTE(v string) predicate.FsEvent

EventLTE applies the LTE predicate on the "event" field.

func EventNEQ

func EventNEQ(v string) predicate.FsEvent

EventNEQ applies the NEQ predicate on the "event" field.

func EventNotIn

func EventNotIn(vs ...string) predicate.FsEvent

EventNotIn applies the NotIn predicate on the "event" field.

func HasUser

func HasUser() predicate.FsEvent

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.FsEvent

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

func ID

func ID(id int) predicate.FsEvent

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.FsEvent

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.FsEvent

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.FsEvent

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.FsEvent

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.FsEvent

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.FsEvent

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Subscriber

func Subscriber(v uuid.UUID) predicate.FsEvent

Subscriber applies equality check predicate on the "subscriber" field. It's identical to SubscriberEQ.

func SubscriberEQ

func SubscriberEQ(v uuid.UUID) predicate.FsEvent

SubscriberEQ applies the EQ predicate on the "subscriber" field.

func SubscriberGT

func SubscriberGT(v uuid.UUID) predicate.FsEvent

SubscriberGT applies the GT predicate on the "subscriber" field.

func SubscriberGTE

func SubscriberGTE(v uuid.UUID) predicate.FsEvent

SubscriberGTE applies the GTE predicate on the "subscriber" field.

func SubscriberIn

func SubscriberIn(vs ...uuid.UUID) predicate.FsEvent

SubscriberIn applies the In predicate on the "subscriber" field.

func SubscriberLT

func SubscriberLT(v uuid.UUID) predicate.FsEvent

SubscriberLT applies the LT predicate on the "subscriber" field.

func SubscriberLTE

func SubscriberLTE(v uuid.UUID) predicate.FsEvent

SubscriberLTE applies the LTE predicate on the "subscriber" field.

func SubscriberNEQ

func SubscriberNEQ(v uuid.UUID) predicate.FsEvent

SubscriberNEQ applies the NEQ predicate on the "subscriber" field.

func SubscriberNotIn

func SubscriberNotIn(vs ...uuid.UUID) predicate.FsEvent

SubscriberNotIn applies the NotIn predicate on the "subscriber" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.FsEvent

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.FsEvent

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.FsEvent

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.FsEvent

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.FsEvent

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.FsEvent

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.FsEvent

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserFsevent

func UserFsevent(v int) predicate.FsEvent

UserFsevent applies equality check predicate on the "user_fsevent" field. It's identical to UserFseventEQ.

func UserFseventEQ

func UserFseventEQ(v int) predicate.FsEvent

UserFseventEQ applies the EQ predicate on the "user_fsevent" field.

func UserFseventIn

func UserFseventIn(vs ...int) predicate.FsEvent

UserFseventIn applies the In predicate on the "user_fsevent" field.

func UserFseventIsNil

func UserFseventIsNil() predicate.FsEvent

UserFseventIsNil applies the IsNil predicate on the "user_fsevent" field.

func UserFseventNEQ

func UserFseventNEQ(v int) predicate.FsEvent

UserFseventNEQ applies the NEQ predicate on the "user_fsevent" field.

func UserFseventNotIn

func UserFseventNotIn(vs ...int) predicate.FsEvent

UserFseventNotIn applies the NotIn predicate on the "user_fsevent" field.

func UserFseventNotNil

func UserFseventNotNil() predicate.FsEvent

UserFseventNotNil applies the NotNil predicate on the "user_fsevent" 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 FsEvent queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByEvent

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

ByEvent orders the results by the event field.

func ByID

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

ByID orders the results by the id field.

func BySubscriber

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

BySubscriber orders the results by the subscriber field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserField

func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption

ByUserField orders the results by user field.

func ByUserFsevent

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

ByUserFsevent orders the results by the user_fsevent field.

Jump to

Keyboard shortcuts

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