frontend: add API

This commit is contained in:
Lan Tian
2021-01-17 12:35:29 +08:00
parent aa76bc3de7
commit da2c3d9aed
5 changed files with 347 additions and 28 deletions

View File

@@ -32,15 +32,14 @@ type TemplatePage struct {
}
// summary
type SummaryRowData struct {
Name string
Proto string
Table string
State string
MappedState string
Since string
Info string
Name string `json:"name"`
Proto string `json:"proto"`
Table string `json:"table"`
State string `json:"state"`
MappedState string `json:"-"`
Since string `json:"since"`
Info string `json:"info"`
}
// utility functions to allow filtering of results in the template