mirror of
https://github.com/divan/expvarmon.git
synced 2025-04-25 13:48:54 +08:00
18 lines
299 B
Go
18 lines
299 B
Go
package main
|
|
|
|
import "time"
|
|
|
|
// UIData represents data to be passed to UI.
|
|
type UIData struct {
|
|
Services []*Service
|
|
Vars []VarName
|
|
LastTimestamp time.Time
|
|
}
|
|
|
|
// NewUIData inits and return new data object.
|
|
func NewUIData(vars []VarName) *UIData {
|
|
return &UIData{
|
|
Vars: vars,
|
|
}
|
|
}
|