1
0
mirror of https://github.com/divan/expvarmon.git synced 2025-04-25 13:48:54 +08:00
expvarmon/data.go

18 lines
299 B
Go
Raw Normal View History

2015-04-25 15:54:17 +03:00
package main
import "time"
2015-05-01 14:37:28 +03:00
// UIData represents data to be passed to UI.
type UIData struct {
2015-05-01 20:12:23 +03:00
Services []*Service
2015-05-01 18:48:34 +03:00
Vars []VarName
2015-04-25 15:54:17 +03:00
LastTimestamp time.Time
}
2015-05-01 16:49:19 +03:00
// NewUIData inits and return new data object.
2015-05-01 18:48:34 +03:00
func NewUIData(vars []VarName) *UIData {
2015-05-01 16:49:19 +03:00
return &UIData{
Vars: vars,
}
2015-04-25 15:54:17 +03:00
}