Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.FsEvent) predicate.FsEvent
- func CreatedAt(v time.Time) predicate.FsEvent
- func CreatedAtEQ(v time.Time) predicate.FsEvent
- func CreatedAtGT(v time.Time) predicate.FsEvent
- func CreatedAtGTE(v time.Time) predicate.FsEvent
- func CreatedAtIn(vs ...time.Time) predicate.FsEvent
- func CreatedAtLT(v time.Time) predicate.FsEvent
- func CreatedAtLTE(v time.Time) predicate.FsEvent
- func CreatedAtNEQ(v time.Time) predicate.FsEvent
- func CreatedAtNotIn(vs ...time.Time) predicate.FsEvent
- func DeletedAt(v time.Time) predicate.FsEvent
- func DeletedAtEQ(v time.Time) predicate.FsEvent
- func DeletedAtGT(v time.Time) predicate.FsEvent
- func DeletedAtGTE(v time.Time) predicate.FsEvent
- func DeletedAtIn(vs ...time.Time) predicate.FsEvent
- func DeletedAtIsNil() predicate.FsEvent
- func DeletedAtLT(v time.Time) predicate.FsEvent
- func DeletedAtLTE(v time.Time) predicate.FsEvent
- func DeletedAtNEQ(v time.Time) predicate.FsEvent
- func DeletedAtNotIn(vs ...time.Time) predicate.FsEvent
- func DeletedAtNotNil() predicate.FsEvent
- func Event(v string) predicate.FsEvent
- func EventContains(v string) predicate.FsEvent
- func EventContainsFold(v string) predicate.FsEvent
- func EventEQ(v string) predicate.FsEvent
- func EventEqualFold(v string) predicate.FsEvent
- func EventGT(v string) predicate.FsEvent
- func EventGTE(v string) predicate.FsEvent
- func EventHasPrefix(v string) predicate.FsEvent
- func EventHasSuffix(v string) predicate.FsEvent
- func EventIn(vs ...string) predicate.FsEvent
- func EventLT(v string) predicate.FsEvent
- func EventLTE(v string) predicate.FsEvent
- func EventNEQ(v string) predicate.FsEvent
- func EventNotIn(vs ...string) predicate.FsEvent
- func HasUser() predicate.FsEvent
- func HasUserWith(preds ...predicate.User) predicate.FsEvent
- func ID(id int) predicate.FsEvent
- func IDEQ(id int) predicate.FsEvent
- func IDGT(id int) predicate.FsEvent
- func IDGTE(id int) predicate.FsEvent
- func IDIn(ids ...int) predicate.FsEvent
- func IDLT(id int) predicate.FsEvent
- func IDLTE(id int) predicate.FsEvent
- func IDNEQ(id int) predicate.FsEvent
- func IDNotIn(ids ...int) predicate.FsEvent
- func Not(p predicate.FsEvent) predicate.FsEvent
- func Or(predicates ...predicate.FsEvent) predicate.FsEvent
- func Subscriber(v uuid.UUID) predicate.FsEvent
- func SubscriberEQ(v uuid.UUID) predicate.FsEvent
- func SubscriberGT(v uuid.UUID) predicate.FsEvent
- func SubscriberGTE(v uuid.UUID) predicate.FsEvent
- func SubscriberIn(vs ...uuid.UUID) predicate.FsEvent
- func SubscriberLT(v uuid.UUID) predicate.FsEvent
- func SubscriberLTE(v uuid.UUID) predicate.FsEvent
- func SubscriberNEQ(v uuid.UUID) predicate.FsEvent
- func SubscriberNotIn(vs ...uuid.UUID) predicate.FsEvent
- func UpdatedAt(v time.Time) predicate.FsEvent
- func UpdatedAtEQ(v time.Time) predicate.FsEvent
- func UpdatedAtGT(v time.Time) predicate.FsEvent
- func UpdatedAtGTE(v time.Time) predicate.FsEvent
- func UpdatedAtIn(vs ...time.Time) predicate.FsEvent
- func UpdatedAtLT(v time.Time) predicate.FsEvent
- func UpdatedAtLTE(v time.Time) predicate.FsEvent
- func UpdatedAtNEQ(v time.Time) predicate.FsEvent
- func UpdatedAtNotIn(vs ...time.Time) predicate.FsEvent
- func UserFsevent(v int) predicate.FsEvent
- func UserFseventEQ(v int) predicate.FsEvent
- func UserFseventIn(vs ...int) predicate.FsEvent
- func UserFseventIsNil() predicate.FsEvent
- func UserFseventNEQ(v int) predicate.FsEvent
- func UserFseventNotIn(vs ...int) predicate.FsEvent
- func UserFseventNotNil() predicate.FsEvent
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEvent(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySubscriber(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserFsevent(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldEvent, FieldSubscriber, FieldUserFsevent, }
Columns holds all SQL columns for fsevent fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Event ¶
Event applies equality check predicate on the "event" field. It's identical to EventEQ.
func EventContains ¶
EventContains applies the Contains predicate on the "event" field.
func EventContainsFold ¶
EventContainsFold applies the ContainsFold predicate on the "event" field.
func EventEqualFold ¶
EventEqualFold applies the EqualFold predicate on the "event" field.
func EventHasPrefix ¶
EventHasPrefix applies the HasPrefix predicate on the "event" field.
func EventHasSuffix ¶
EventHasSuffix applies the HasSuffix predicate on the "event" field.
func EventNotIn ¶
EventNotIn applies the NotIn predicate on the "event" field.
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func Subscriber ¶
Subscriber applies equality check predicate on the "subscriber" field. It's identical to SubscriberEQ.
func SubscriberEQ ¶
SubscriberEQ applies the EQ predicate on the "subscriber" field.
func SubscriberGT ¶
SubscriberGT applies the GT predicate on the "subscriber" field.
func SubscriberGTE ¶
SubscriberGTE applies the GTE predicate on the "subscriber" field.
func SubscriberIn ¶
SubscriberIn applies the In predicate on the "subscriber" field.
func SubscriberLT ¶
SubscriberLT applies the LT predicate on the "subscriber" field.
func SubscriberLTE ¶
SubscriberLTE applies the LTE predicate on the "subscriber" field.
func SubscriberNEQ ¶
SubscriberNEQ applies the NEQ predicate on the "subscriber" field.
func SubscriberNotIn ¶
SubscriberNotIn applies the NotIn predicate on the "subscriber" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserFsevent ¶
UserFsevent applies equality check predicate on the "user_fsevent" field. It's identical to UserFseventEQ.
func UserFseventEQ ¶
UserFseventEQ applies the EQ predicate on the "user_fsevent" field.
func UserFseventIn ¶
UserFseventIn applies the In predicate on the "user_fsevent" field.
func UserFseventIsNil ¶
UserFseventIsNil applies the IsNil predicate on the "user_fsevent" field.
func UserFseventNEQ ¶
UserFseventNEQ applies the NEQ predicate on the "user_fsevent" field.
func UserFseventNotIn ¶
UserFseventNotIn applies the NotIn predicate on the "user_fsevent" field.
func UserFseventNotNil ¶
UserFseventNotNil applies the NotNil predicate on the "user_fsevent" 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 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.