fix: nodes no longer beg to be kept alive
This commit is contained in:
parent
7c4154a459
commit
a32b0f728e
12 changed files with 146 additions and 62 deletions
16
internal/registry/event.go
Normal file
16
internal/registry/event.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package registry
|
||||
|
||||
import "git.wzray.com/homelab/hivemind/internal/types"
|
||||
|
||||
type Event int
|
||||
|
||||
const (
|
||||
EventNodeJoin Event = iota
|
||||
EventNodeLeave
|
||||
EventSet
|
||||
)
|
||||
|
||||
type RegistryEvent struct {
|
||||
Event Event
|
||||
Nodes map[string]types.Node
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue