Documentation
¶
Index ¶
- type DeviceDurationElephantFunc
- type DeviceDurationFunc
- type DeviceEventFunc
- type DeviceKpiFunc
- type DeviceOfflineTimeFunc
- type DeviceOnTimeDailyFunc
- type DeviceOnlineTimeFunc
- type DeviceUpsterCycleFunc
- type DeviceUpsterStatisticsFunc
- type Func
- type Query
- type TraverseDeviceDuration
- type TraverseDeviceDurationElephant
- type TraverseDeviceEvent
- type TraverseDeviceKpi
- type TraverseDeviceOfflineTime
- type TraverseDeviceOnTimeDaily
- type TraverseDeviceOnlineTime
- type TraverseDeviceUpsterCycle
- type TraverseDeviceUpsterStatistics
- type TraverseFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceDurationElephantFunc ¶
type DeviceDurationElephantFunc func(context.Context, *ent.DeviceDurationElephantQuery) (ent.Value, error)
The DeviceDurationElephantFunc type is an adapter to allow the use of ordinary function as a Querier.
type DeviceDurationFunc ¶
The DeviceDurationFunc type is an adapter to allow the use of ordinary function as a Querier.
type DeviceEventFunc ¶
The DeviceEventFunc type is an adapter to allow the use of ordinary function as a Querier.
type DeviceKpiFunc ¶
The DeviceKpiFunc type is an adapter to allow the use of ordinary function as a Querier.
type DeviceOfflineTimeFunc ¶
The DeviceOfflineTimeFunc type is an adapter to allow the use of ordinary function as a Querier.
type DeviceOnTimeDailyFunc ¶
The DeviceOnTimeDailyFunc type is an adapter to allow the use of ordinary function as a Querier.
type DeviceOnlineTimeFunc ¶
The DeviceOnlineTimeFunc type is an adapter to allow the use of ordinary function as a Querier.
type DeviceUpsterCycleFunc ¶
The DeviceUpsterCycleFunc type is an adapter to allow the use of ordinary function as a Querier.
type DeviceUpsterStatisticsFunc ¶
type DeviceUpsterStatisticsFunc func(context.Context, *ent.DeviceUpsterStatisticsQuery) (ent.Value, error)
The DeviceUpsterStatisticsFunc type is an adapter to allow the use of ordinary function as a Querier.
type Func ¶
The Func type is an adapter that allows ordinary functions to be used as interceptors. Unlike traversal functions, interceptors are skipped during graph traversals. Note that the implementation of Func is different from the one defined in entgo.io/ent.InterceptFunc.
type Query ¶
type Query interface { // Type returns the string representation of the query type. Type() string // Limit the number of records to be returned by this query. Limit(int) // Offset to start from. Offset(int) // Unique configures the query builder to filter duplicate records. Unique(bool) // Order specifies how the records should be ordered. Order(...func(*sql.Selector)) // WhereP appends storage-level predicates to the query builder. Using this method, users // can use type-assertion to append predicates that do not depend on any generated package. WhereP(...func(*sql.Selector)) }
The Query interface represents an operation that queries a graph. By using this interface, users can write generic code that manipulates query builders of different types.
type TraverseDeviceDuration ¶
type TraverseDeviceDuration func(context.Context, *ent.DeviceDurationQuery) error
The TraverseDeviceDuration type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDeviceDurationElephant ¶
type TraverseDeviceDurationElephant func(context.Context, *ent.DeviceDurationElephantQuery) error
The TraverseDeviceDurationElephant type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDeviceEvent ¶
type TraverseDeviceEvent func(context.Context, *ent.DeviceEventQuery) error
The TraverseDeviceEvent type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDeviceKpi ¶
type TraverseDeviceKpi func(context.Context, *ent.DeviceKpiQuery) error
The TraverseDeviceKpi type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDeviceOfflineTime ¶
type TraverseDeviceOfflineTime func(context.Context, *ent.DeviceOfflineTimeQuery) error
The TraverseDeviceOfflineTime type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDeviceOnTimeDaily ¶
type TraverseDeviceOnTimeDaily func(context.Context, *ent.DeviceOnTimeDailyQuery) error
The TraverseDeviceOnTimeDaily type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDeviceOnlineTime ¶
type TraverseDeviceOnlineTime func(context.Context, *ent.DeviceOnlineTimeQuery) error
The TraverseDeviceOnlineTime type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDeviceUpsterCycle ¶
type TraverseDeviceUpsterCycle func(context.Context, *ent.DeviceUpsterCycleQuery) error
The TraverseDeviceUpsterCycle type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDeviceUpsterStatistics ¶
type TraverseDeviceUpsterStatistics func(context.Context, *ent.DeviceUpsterStatisticsQuery) error
The TraverseDeviceUpsterStatistics type is an adapter to allow the use of ordinary function as Traverser.
type TraverseFunc ¶
The TraverseFunc type is an adapter to allow the use of ordinary function as Traverser. If f is a function with the appropriate signature, TraverseFunc(f) is a Traverser that calls f.