18 lines
327 B
Go
18 lines
327 B
Go
package state
|
|
|
|
import (
|
|
"git.wzray.com/homelab/hivemind/internal/registry"
|
|
"git.wzray.com/homelab/hivemind/internal/types"
|
|
)
|
|
|
|
type RuntimeState struct {
|
|
Registry *registry.Registry
|
|
Self types.Node
|
|
}
|
|
|
|
func New(r *registry.Registry, n types.Node) *RuntimeState {
|
|
return &RuntimeState{
|
|
Registry: r,
|
|
Self: n,
|
|
}
|
|
}
|