Documentation
¶
Overview ¶
Package statehttp serves a managed script's state on its portal page (#1537): reading the one JSON object a script carries from run to run, and the owner's two resets of it.
It is mounted by scripthttp, which resolves the caller and the script and refuses everybody but the script's owner and an administrator before any handler here runs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
type Deps struct {
States script.StateStore
// Owned resolves the script in the path for a caller who owns it, or
// writes the refusal and reports false. actor is who the caller is, as a
// reset records it.
Owned func(w http.ResponseWriter, r *http.Request) (scriptID, actor string, ok bool)
}
Deps carries the state store and the ownership gate.
Click to show internal directories.
Click to hide internal directories.