screenshotv2

package
v0.2.187 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 6 Imported by: 0

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"`
}

func (*Target) Validate

func (o *Target) Validate() error

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"`
}

func (*Task) Validate

func (o *Task) Validate() error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL