summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/rpc/service_test.go2
-rw-r--r--service/watcher/watcher.go8
2 files changed, 9 insertions, 1 deletions
diff --git a/service/rpc/service_test.go b/service/rpc/service_test.go
index 41233070..ee87509a 100644
--- a/service/rpc/service_test.go
+++ b/service/rpc/service_test.go
@@ -14,7 +14,7 @@ func (ts *testService) Echo(msg string, r *string) error { *r = msg; return nil
func Test_Disabled(t *testing.T) {
s := &Service{}
- ok, err := s.Init(&Config{Enable: false}, nil)
+ ok, err := s.Init(&Config{Enable: false}, service.NewContainer(nil), nil)
assert.NoError(t, err)
assert.False(t, ok)
diff --git a/service/watcher/watcher.go b/service/watcher/watcher.go
index 8278790e..9d770135 100644
--- a/service/watcher/watcher.go
+++ b/service/watcher/watcher.go
@@ -1 +1,9 @@
package watcher
+
+import "github.com/spiral/roadrunner"
+
+// Server defines the ability to get access to underlying roadrunner server for watching capabilities.
+type Server interface {
+ // Server must return associated roadrunner serve.
+ Server() *roadrunner.Server
+}