Documentation ¶
Index ¶
- func MergeData(events []*ent.DeviceEvent, endTime time.Time) map[string][]DataType
- func MergeDataElephant(events []*ent.DeviceEvent, endTime time.Time) map[string][]DataType
- func SplitData(dataArr map[string][]DataType) map[string][]DataType
- type CalculateElephantType
- type CalculateType
- type DataType
- type DayJsonElephantType
- type DayJsonType
- type DurationValueType
- type InitDatabaseLogic
- type TypeCalculate
- type TypeHourJson
- type TypeRefer
- type ValueType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeDataElephant ¶
Types ¶
type CalculateElephantType ¶
type CalculateElephantType struct { Connected int32 Running int32 DayJson []DayJsonElephantType }
type CalculateType ¶
type DataType ¶
type DataType struct { Name string Value DurationValueType }
type DayJsonElephantType ¶
type DayJsonType ¶
type DurationValueType ¶
type InitDatabaseLogic ¶
func NewInitDatabaseLogic ¶
func NewInitDatabaseLogic(ctx context.Context, svcCtx *svc.ServiceContext) *InitDatabaseLogic
func (*InitDatabaseLogic) InitDatabase ¶
type TypeCalculate ¶
type TypeHourJson ¶
Click to show internal directories.
Click to hide internal directories.