Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LifecycleState ¶
type LifecycleState string
type ScreenshotSettings ¶
type ScreenshotSettings struct {
DataType ScreenshotSettingsDataType `json:"dataType"`
Delay int64 `json:"delay"`
Height int64 `json:"height"`
Quality int64 `json:"quality"`
Width int64 `json:"width"`
}
func (*ScreenshotSettings) Validate ¶
func (o *ScreenshotSettings) Validate() error
type ScreenshotSettingsDataType ¶
type ScreenshotSettingsDataType string
const ScreenshotSettingsDataTypeJpeg ScreenshotSettingsDataType = "jpeg"
const ScreenshotSettingsDataTypePng ScreenshotSettingsDataType = "png"
const ScreenshotSettingsDataTypeWebp ScreenshotSettingsDataType = "webp"
func (ScreenshotSettingsDataType) Validate ¶
func (e ScreenshotSettingsDataType) Validate() error
type Target ¶
type Target struct {
Domain string `json:"domain"`
Path *string `json:"path,omitempty"`
Scheme TargetScheme `json:"scheme"`
}
type TargetScheme ¶
type TargetScheme string
const TargetSchemeHttp TargetScheme = "http"
const TargetSchemeHttps TargetScheme = "https"
func (TargetScheme) Validate ¶
func (e TargetScheme) Validate() error
type Task ¶
type Task struct {
ExecutedAt *time.Time `json:"executedAt,omitempty"`
FileReference *string `json:"fileReference,omitempty"`
Id string `json:"id"`
Priority int64 `json:"priority"`
Settings ScreenshotSettings `json:"settings"`
Target Target `json:"target"`
TaskState *TaskTaskState `json:"taskState,omitempty"`
}
type TaskTaskState ¶
type TaskTaskState struct {
AlternativeLifecycleState *LifecycleState
AlternativeError *commonsv2.Error
}
func (*TaskTaskState) MarshalJSON ¶
func (a *TaskTaskState) MarshalJSON() ([]byte, error)
func (*TaskTaskState) UnmarshalJSON ¶
func (a *TaskTaskState) UnmarshalJSON(input []byte) error
func (*TaskTaskState) Validate ¶
func (a *TaskTaskState) Validate() error
Click to show internal directories.
Click to hide internal directories.