Documentation
¶
Overview ¶
Package server implements acurl serve: a local web UI and JSON API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckRequest ¶
type CheckRequest struct {
URL string `json:"url"`
Categories []string `json:"categories,omitempty"`
Agents []string `json:"agents,omitempty"`
Render bool `json:"render,omitempty"`
}
CheckRequest is the body of POST /api/check.
type Options ¶
type Options struct {
// Base options for every check. Profiles are filtered per request.
Check acurl.Options
// MaxConcurrent limits simultaneous checks. Default 4.
MaxConcurrent int
Version string
}
Options configures the server.
Click to show internal directories.
Click to hide internal directories.