30 lines
597 B
Go
30 lines
597 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type InterfaceType string
|
|
|
|
const (
|
|
InterfaceTypeCLI InterfaceType = "CLI"
|
|
InterfaceTypeWeb InterfaceType = "Web"
|
|
)
|
|
|
|
type Statistics struct {
|
|
ID uuid.UUID `json:"id"`
|
|
StartTime time.Time `json:"start_time"`
|
|
EndTime time.Time `json:"end_time"`
|
|
Duration time.Duration `json:"duration"`
|
|
|
|
InterfaceType InterfaceType `json:"interface_type"`
|
|
TasksCompleted int `json:"tasks_completed"`
|
|
ButtonClicks ButtonClicks `json:"button_clicks"`
|
|
}
|
|
|
|
type ButtonClicks struct {
|
|
Clicks int `json:"clicks"`
|
|
}
|