-
Notifications
You must be signed in to change notification settings - Fork 1
/
file.go
26 lines (23 loc) · 866 Bytes
/
file.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package web
import (
"time"
)
// FileList is a list of the current set of files.
type FileList struct {
DefaultFileName string `json:"default_file_name,omitempty"`
Files []*File `json:"files,omitempty"`
}
// File is a stored PixelPusher data file.
type File struct {
Name string `json:"name"`
DiskBytes int64 `json:"diskBytes"`
NumBytes int64 `json:"numBytes"`
NumEvents int64 `json:"numEvents"`
NumDevices int `json:"num_devices"`
MaxStrips int `json:"max_strips"`
MaxPixelsPerStrip int `json:"max_pixels_per_strip"`
Created time.Time `json:"created"`
Duration time.Duration `json:"duration"`
Compression string `json:"compression"`
IsDefault bool `json:"is_default"`
}