WithWorkerEnv sets environment variables for the worker
(env map[string]string)
| 178 | |
| 179 | // WithWorkerEnv sets environment variables for the worker |
| 180 | func WithWorkerEnv(env map[string]string) WorkerOption { |
| 181 | return func(w *workerOpt) error { |
| 182 | w.env = PrepareEnv(env) |
| 183 | |
| 184 | return nil |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | // WithWorkerRequestOptions sets options for the main dummy request created for the worker |
| 189 | func WithWorkerRequestOptions(options ...RequestOption) WorkerOption { |