mirror of
https://github.com/go-micro/go-micro.git
synced 2025-11-23 21:44:41 +02:00
[feature] dashboard (#2361)
This commit is contained in:
16
cmd/dashboard/handler/statistics/models.go
Normal file
16
cmd/dashboard/handler/statistics/models.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package statistics
|
||||
|
||||
type getSummaryResponse struct {
|
||||
Registry registrySummary `json:"registry"`
|
||||
Services servicesSummary `json:"services"`
|
||||
}
|
||||
|
||||
type registrySummary struct {
|
||||
Type string `json:"type"`
|
||||
Addrs []string `json:"addrs"`
|
||||
}
|
||||
|
||||
type servicesSummary struct {
|
||||
Count int `json:"count"`
|
||||
NodesCount int `json:"nodes_count"`
|
||||
}
|
||||
Reference in New Issue
Block a user