1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-22 15:18:02 +00:00

Custom views!

This commit is contained in:
2023-01-23 20:47:43 +01:00
parent 29e93dcab1
commit fa924f087d
11 changed files with 437 additions and 126 deletions

View File

@ -12,19 +12,8 @@ import (
)
type Host struct {
Name string `json:"name"`
URI string `json:"uri"`
Databases map[string]struct {
Collections map[string]struct {
ViewConfig struct {
HideObjectIndicators bool `json:"hideObjectIndicators"`
Columns []struct {
Key string `json:"key"`
Width int64 `json:"width"`
} `json:"columns"`
} `json:"viewConfig"`
} `json:"collections"`
} `json:"databases"`
Name string `json:"name"`
URI string `json:"uri"`
}
func updateHostsFile(newData map[string]Host) error {