Documentation
¶
Overview ¶
Package handler adapts HTTP requests to Bed and Amenity operations.
Index ¶
Constants ¶
View Source
const BedHeader = "X-Hostel-Bed"
BedHeader carries the caller-owned Bed.Name; empty means the default Bed.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler queries domain owners and assembles their results into API views.
func (*Handler) RegisterRoutes ¶
RegisterRoutes installs the HTTP contract on the supplied engine.
type RunCommandRequest ¶
type RunCommandRequest struct {
Command string `json:"command"`
Stdin string `json:"stdin,omitempty"`
Cwd string `json:"cwd,omitempty"`
Background bool `json:"background,omitempty"`
UID *int `json:"uid,omitempty"`
GID *int `json:"gid,omitempty"`
TimeoutMs int64 `json:"timeout,omitempty"`
Envs map[string]string `json:"envs,omitempty"`
}
RunCommandRequest mirrors execd's shape.
Click to show internal directories.
Click to hide internal directories.