Documentation
¶
Overview ¶
Package exclusivehttp serves the owner's setting for whether a managed script's runs may overlap (#1986, #2209): off, refuse (no run starts while another is pending or running, whatever started it) or queue (another run waits until none is running).
It is mounted by scripthttp, which resolves the caller and the script, refuses everybody but the script's owner and an administrator, and lands the change through the edit funnel every portal edit crosses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
type Deps struct {
// Edit applies mutate to the script in the path for a caller who owns
// it, through the edit funnel, writing any refusal itself; it reports the
// script as saved.
Edit func(w http.ResponseWriter, r *http.Request, mutate func(*script.Script)) (*script.Script, bool)
}
Deps carries the edit the route makes.
Click to show internal directories.
Click to hide internal directories.