Help us shape the future of Go! Take the 2026 Go Developer Survey

webplanner

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const Separator = ", "

Variables

This section is empty.

Functions

This section is empty.

Types

type Action added in v0.74.0

type Action struct {
	Method        string
	Tag           string
	Arguments     string
	Target        string
	Selectors     []string
	Expression    string
	URL           string
	Timestamp     int64
	ValueRedacted bool
}

type ActionRequest added in v0.74.0

type ActionRequest struct {
	Type            string `json:"type,omitempty"`
	Exclusion       string `json:"exclusion"`
	Attributes      string `json:"attributes"`
	Command         string `json:"command,omitempty"`
	Enabled         *bool  `json:"enabled,omitempty"`
	DebuggerAddress string `json:"debuggerAddress,omitempty"`
	Remote          string `json:"remote,omitempty"`
	DirectCDP       bool   `json:"directCDP,omitempty"`
}

type Config

type Config struct {
	Port             int
	Host             string
	Token            string
	Browser          string
	Remote           string
	DebuggerAddress  string
	DirectCDP        bool
	PageLoadStrategy string
}

Config holds the configuration for the server

type Event added in v0.74.0

type Event struct {
	ID            string `json:"id"`
	Type          string `json:"type"`
	TargetTag     string `json:"targetTag"`
	TargetHTML    string `json:"targetHTML"`
	HolderHTML    string `json:"holderHTML"`
	Key           string `json:"key"`
	MetaKey       bool   `json:"metaKey"`
	Value         string `json:"value"`
	ValueRedacted bool   `json:"valueRedacted"`
	InputType     string `json:"inputType"`
	Checked       bool   `json:"checked"`
	URL           string `json:"url"`
	Title         string `json:"title"`
	Timestamp     int64  `json:"timestamp"`
}

type LiveResponse added in v0.91.0

type LiveResponse struct {
	Type   string      `json:"type"`
	Status string      `json:"status"`
	Output string      `json:"output,omitempty"`
	Error  string      `json:"error,omitempty"`
	Data   interface{} `json:"data,omitempty"`
}

type RunResponsePayload added in v0.84.0

type RunResponsePayload struct {
	Status         string
	Message        string
	Plan           string
	Output         string
	CaptureSinkURL string
	CaptureSummary *webdriver.CaptureSummary
}

type Service

type Service struct {
	Config *Config

	Keys   string
	Target string
	// contains filtered or unexported fields
}

Service represents the HTTP server.

func New

func New(config *Config) *Service

func NewService

func NewService(config *Config) *Service

NewService creates a new instance of Service with the provided config.

func (*Service) EnsureSession added in v0.84.0

func (s *Service) EnsureSession() error

func (*Service) EnsureWebDriver

func (s *Service) EnsureWebDriver() error

func (*Service) RunCommands

func (s *Service) RunCommands(lines []string) (string, error)

func (*Service) RunCommandsWithOptions added in v0.84.0

func (s *Service) RunCommandsWithOptions(lines []string, nav *webdriver.NavigationOptions) (string, error)

func (*Service) Start

func (s *Service) Start() error

Start starts the HTTP server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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