Documentation
¶
Index ¶
Constants ¶
View Source
const TimelineRecordCategoryDowntime = TimelineRecordCategory("downtime")
View Source
const TimelineRecordCategoryWorktime = TimelineRecordCategory("worktime")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApexchartsTimeline ¶
type ApexchartsTimeline struct {
Name string `json:"name"`
Data []ApexchartsTimelineBar `json:"data"`
}
type ApexchartsTimelineBar ¶
type Interval ¶
type Interval struct {
StartedAt time.Time `json:"started_at"`
FinishedAt time.Time `json:"finished_at"`
}
func (Interval) Allocation ¶
func (Interval) Intersection ¶
type Timeline ¶
type Timeline struct {
Workshift TimelineWorkshift `json:"workshift"`
Equipment TimelineEquipment `json:"equipment"`
Records []TimelineRecord `json:"records"`
}
func (Timeline) ApexchartsTimeline ¶
func (t Timeline) ApexchartsTimeline(now time.Time) []openapi.ApexchartsTimeline
type TimelineEquipment ¶
type TimelineRecord ¶
type TimelineRecord struct {
ID string `json:"id"`
Category TimelineRecordCategory `json:"category"`
Interval
}
type TimelineRecordCategory ¶
type TimelineRecordCategory string
type TimelineWorkshift ¶
Click to show internal directories.
Click to hide internal directories.