* Add String to Runtime interface

* Setup Dynamic Runtime Configuration
This commit is contained in:
ben-toogood
2020-02-05 13:59:35 +00:00
committed by GitHub
parent 4333f00a43
commit bf747a86f4
7 changed files with 50 additions and 1 deletions

View File

@@ -12,6 +12,15 @@ type Options struct {
Scheduler Scheduler
// Service type to manage
Type string
// Source of the services repository
Source string
}
// WithSource sets the host addresses to be used by the broker
func WithSource(src string) Option {
return func(o *Options) {
o.Source = src
}
}
// WithScheduler specifies a scheduler for updates