evdist: Retactor + include dashboard lookup
This commit is contained in:
parent
d44fc4f715
commit
5592fabefa
6 changed files with 338 additions and 180 deletions
|
@ -35,6 +35,14 @@ type NextSettingsFile struct {
|
|||
Values map[string]interface{} `json:"values"`
|
||||
}
|
||||
|
||||
func (nsf *NextSettingsFile) GetId() int64 {
|
||||
return nsf.Id
|
||||
}
|
||||
|
||||
func (nsf *NextSettingsFile) GetDate() *time.Time {
|
||||
return &nsf.Date
|
||||
}
|
||||
|
||||
func ReadNextSettingsFile(filename string, ts int64) (*NextSettingsFile, error) {
|
||||
fd, err := os.Open(filename)
|
||||
if err != nil {
|
||||
|
|
Reference in a new issue