summaryrefslogtreecommitdiff
path: root/service/reload/config.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-21 10:32:51 +0300
committerValery Piashchynski <[email protected]>2020-02-21 10:32:51 +0300
commite32bc78ec1fc32b81c0029bbfee14bb570057554 (patch)
tree3e6db28a75d285d23968edf24f32142612fe88a3 /service/reload/config.go
parent2efcfeb89861ba981f980bb4503c31ca6c7a92e0 (diff)
Update service to support file patterns
Update watcher Gracefull stop
Diffstat (limited to 'service/reload/config.go')
-rw-r--r--service/reload/config.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/service/reload/config.go b/service/reload/config.go
index f684a227..af1c79eb 100644
--- a/service/reload/config.go
+++ b/service/reload/config.go
@@ -3,16 +3,17 @@ package reload
import (
"github.com/spiral/roadrunner"
"github.com/spiral/roadrunner/service"
+ "time"
)
// Config is a Reload configuration point.
type Config struct {
// Enable or disable Reload extension, default disable.
Enabled bool
-
- // Watch is general pattern of files to watch. It will be applied to every directory in project
- Watch []string
-
+ // Interval is a global refresh interval
+ Interval time.Duration
+ // Patterns is a global file patterns to watch. It will be applied to every directory in project
+ Patterns []string
// Services is set of services which would be reloaded in case of FS changes
Services map[string]ServiceConfig
}
@@ -26,7 +27,6 @@ type ServiceConfig struct {
Dirs []string
// Ignore is set of files which would not be watched
Ignore []string
-
// service is a link to service to restart
service *roadrunner.Controllable
}