diff options
author | Wolfy-J <[email protected]> | 2019-05-03 15:44:51 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-03 15:44:51 +0300 |
commit | 28c787d66c2b74dd2300c792abd1e4f987c3d6c9 (patch) | |
tree | b9c5ef036eda3ffa16b5e87a06ce99fcd8a4d7b4 /service/http | |
parent | e9d42947a6922ce2f0aa9f9bcab4ead167735bc9 (diff) |
new watchers functionality
Diffstat (limited to 'service/http')
-rw-r--r-- | service/http/service.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/http/service.go b/service/http/service.go index 716499a4..651284b4 100644 --- a/service/http/service.go +++ b/service/http/service.go @@ -25,7 +25,7 @@ const ( // http middleware type. type middleware func(f http.HandlerFunc) http.HandlerFunc -// Service manages rr, http servers. +// Services manages rr, http servers. type Service struct { cfg *Config env env.Environment @@ -40,7 +40,7 @@ type Service struct { } // Watch attaches watcher. -func (s *Service) AttachWatcher(w roadrunner.Watcher) { +func (s *Service) Watch(w roadrunner.Watcher) { s.watcher = w } |