state manager stub
diff --git a/service.go b/service.go
index ccfd0bc..916299c 100644
--- a/service.go
+++ b/service.go
@@ -7,11 +7,13 @@
"sort"
"strings"
- "code.hackerspace.pl/q3k/topo/graph"
"github.com/gobuffalo/packr"
"github.com/golang/glog"
"github.com/q3k/statusz"
"vbom.ml/util/sortorder"
+
+ "code.hackerspace.pl/q3k/topo/graph"
+ "code.hackerspace.pl/q3k/topo/state"
)
type ServiceConfig struct {
@@ -20,12 +22,14 @@
type Service struct {
gr *graph.Graph
+ stm *state.StateManager
config ServiceConfig
}
-func NewService(gr *graph.Graph, c ServiceConfig) *Service {
+func NewService(gr *graph.Graph, stm *state.StateManager, c ServiceConfig) *Service {
return &Service{
gr: gr,
+ stm: stm,
config: c,
}
}