We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d568570 commit 34f7dbcCopy full SHA for 34f7dbc
1 file changed
cluster/router/options.go
@@ -61,13 +61,13 @@ func WithForce(force bool) Option {
61
62
func WithRuntime(runtime bool) Option {
63
return func(opts *Options) {
64
- opts.Router.Force = &runtime
+ opts.Router.Runtime = &runtime
65
}
66
67
68
func WithEnabled(enabled bool) Option {
69
70
- opts.Router.Force = &enabled
+ opts.Router.Enabled = &enabled
71
72
73
@@ -93,5 +93,16 @@ func WithTags(tags []global.Tag) Option {
93
94
opts.Router.Tags = tags
95
96
+}
97
98
+func WithScript(script string) Option {
99
+ return func(opts *Options) {
100
+ opts.Router.Script = script
101
+ }
102
103
+
104
+func WithScriptType(scriptType string) Option {
105
106
+ opts.Router.ScriptType = scriptType
107
108
0 commit comments