Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidHMACSignature = xerrors.Errorf("invalid hmac signature")
)
Functions ¶
func NewHealthHandler ¶
func NewHealthHandler(started time.Time) http.HandlerFunc
func NewImageHandler ¶
func NewImageHandler(srv *service.Service, auth Auth) http.HandlerFunc
func NewVersionHandler ¶
func NewVersionHandler(info internal.BuildInfo) http.HandlerFunc
Types ¶
type AuthHMAC ¶
type AuthHMAC struct {
// contains filtered or unexported fields
}
func NewAuthHMAC ¶
type HTTPError ¶
func (*HTTPError) MarshalJSON ¶
type ScreenshotInput ¶
type ScreenshotInput struct { URL string `schema:"url,required"` Width int `schema:"width"` Height int `schema:"height"` Scale float64 `schema:"scale"` Format internal.ImageFormat `schema:"format"` Quality int `schema:"quality"` ScrollPage bool `schema:"scroll_page"` FullPage bool `schema:"full_page"` Delay int `schema:"delay"` ClipX *float64 `schema:"clip_x"` ClipY *float64 `schema:"clip_y"` ClipWidth *float64 `schema:"clip_width"` ClipHeight *float64 `schema:"clip_height"` Fresh bool `schema:"fresh"` TTL int `schema:"ttl"` }
Click to show internal directories.
Click to hide internal directories.