feat: initial release
This commit is contained in:
parent
a3cf21f5bd
commit
1e0ee5bffe
40 changed files with 2007 additions and 217 deletions
13
internal/registry/storage.go
Normal file
13
internal/registry/storage.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package registry
|
||||
|
||||
import "git.wzray.com/homelab/mastermind/internal/types"
|
||||
|
||||
type Storage interface {
|
||||
Save(*storedConfig) error
|
||||
Load(*storedConfig) error
|
||||
}
|
||||
|
||||
type storedConfig struct {
|
||||
LastUpdate int64 `json:"last_update"`
|
||||
Nodes map[string]types.Node `json:"nodes"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue