Documentation
¶
Overview ¶
Package inproc runs job handlers in the worker process.
This is Dispatch's original behaviour and remains the default. It provides no isolation: the handler shares the worker's memory, credentials, file descriptors, and network. That is the right trade for handlers that do not touch untrusted bytes, where launching a process per job would be pure overhead, and the wrong one for anything parsing a customer upload with a memory-unsafe library.
Index ¶
Constants ¶
View Source
const Name = "inprocess"
Name is the identifier this executor registers under.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor runs handlers in the worker process.
Click to show internal directories.
Click to hide internal directories.