Versions in this module Expand all Collapse all v0 v0.2.0 Jun 21, 2026 v0.1.0 Apr 28, 2026 Changes in this version + type NewTabData struct + ID string + Title string + URL string + type TabData struct + ActiveSession string + Sessions []PageSession + type TabParams struct + Action string + Query string + URL string v0.0.1 Jan 31, 2026 Changes in this version + const ConsoleTypeDebug + const ConsoleTypeError + const ConsoleTypeInfo + const ConsoleTypeLog + const ConsoleTypeWarning + const MultiElementSeparator + var ErrDaemonNotRunning = errors.New("daemon is not running") + func DefaultPIDPath() string + func DefaultSocketPath() string + func IsDaemonRunning() bool + func IsDaemonRunningAt(socketPath string) bool + func NormalizeConsoleType(t string) string + type CSSData struct + CSS string + ComputedMulti []ElementWithStyles + Inline []string + InlineMulti []ElementWithStyles + Matched []CSSMatchedRule + Styles map[string]string + Value string + type CSSMatchedRule struct + Properties map[string]string + Selector string + Source string + type CSSParams struct + Action string + Property string + Selector string + type ClickParams struct + Selector string + type Client struct + func Dial() (*Client, error) + func DialPath(socketPath string) (*Client, error) + func (c *Client) Close() error + func (c *Client) Send(req Request) (Response, error) + func (c *Client) SendCmd(cmd string) (Response, error) + type CommandExecutor func(args []string) (recognized bool, err error) + type ConsoleData struct + Count int + Entries []ConsoleEntry + type ConsoleEntry struct + Args []string + Column int + Line int + SessionID string + Text string + Timestamp int64 + Type string + URL string + type Cookie struct + Domain string + Expires float64 + HTTPOnly bool + Name string + Path string + Priority string + SameParty bool + SameSite string + Secure bool + Session bool + Size int + SourcePort int + SourceScheme string + Value string + type CookiesData struct + Cookies []Cookie + Count int + Matches []Cookie + type CookiesParams struct + Action string + Domain string + HTTPOnly bool + MaxAge int + Name string + Path string + SameSite string + Secure bool + Value string + type ElementMeta struct + Class string + ID string + Tag string + type ElementWithHTML struct + HTML string + type ElementWithStyles struct + Inline string + Styles map[string]string + type EvalData struct + HasValue bool + Value any + type EvalParams struct + Expression string + Timeout int + type FocusParams struct + Selector string + type HTMLData struct + HTML string + HTMLMulti []ElementWithHTML + type HTMLParams struct + Selector string + type Handler func(req Request) Response + type HistoryParams struct + Timeout int + Wait bool + type KeyParams struct + Alt bool + Ctrl bool + Key string + Meta bool + Shift bool + type NavigateData struct + Title string + URL string + type NavigateParams struct + Timeout int + URL string + Wait bool + type NetworkData struct + Count int + Entries []NetworkEntry + type NetworkEntry struct + Body string + BodyPath string + BodyTruncated bool + Duration float64 + Error string + Failed bool + Method string + MimeType string + RequestHeaders map[string]string + RequestID string + RequestTime int64 + ResponseHeaders map[string]string + ResponseTime int64 + SessionID string + Size int64 + Status int + StatusText string + Type string + URL string + type PageSession struct + Active bool + ID string + Status int + Title string + URL string + type ReadyParams struct + Eval string + NetworkIdle bool + Selector string + Timeout int + type ReloadParams struct + IgnoreCache bool + Timeout int + Wait bool + type Request struct + Cmd string + Debug bool + Params json.RawMessage + Target string + type Response struct + Data json.RawMessage + Error string + OK bool + func ErrorResponse(msg string) Response + func SuccessResponse(data any) Response + type ScreenshotData struct + Data []byte + type ScreenshotParams struct + FullPage bool + type ScrollParams struct + ByX int + ByY int + Mode string + Selector string + ToX int + ToY int + type SelectParams struct + Selector string + Value string + type ServeData struct + Mode string + Port int + Running bool + URL string + type ServeParams struct + Action string + Directory string + Host string + IgnorePaths []string + Mode string + Port int + ProxyURL string + WatchPaths []string + type Server struct + func NewServer(socketPath string, handler Handler) (*Server, error) + func (s *Server) Close() error + func (s *Server) Serve(ctx context.Context) error + func (s *Server) SocketPath() string + type StatusData struct + ActiveSession *PageSession + PID int + Running bool + Sessions []PageSession + type TargetData struct + ActiveSession string + Sessions []PageSession + type TypeParams struct + Clear bool + Key string + Selector string + Text string