WithWorkerName sets the worker that should handle the request
(name string)
| 156 | |
| 157 | // WithWorkerName sets the worker that should handle the request |
| 158 | func WithWorkerName(name string) RequestOption { |
| 159 | return func(o *frankenPHPContext) error { |
| 160 | if name != "" { |
| 161 | o.worker = workersByName[name] |
| 162 | } |
| 163 | |
| 164 | return nil |
| 165 | } |
| 166 | } |
no outgoing calls
no test coverage detected