server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChromeVersion added in v1.2.0

type ChromeVersion struct {
	Browser  string `json:"Browser"`
	Protocol string `json:"Protocol-Version"`
	V8       string `json:"V8-Version"`
	WebKit   string `json:"WebKit-Version"`
}

type HttpError added in v1.2.0

type HttpError struct {
	Error string `json:"error"`
}

type Script added in v1.2.0

type Script struct {
	worker.Query
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is HTTP server that wraps Ferret worker.

func New

func New(settings Settings) *Server

func (*Server) Run

func (s *Server) Run(port uint64) error

Run start server that serve at the given port.

Port should not begin with ":".

type Settings added in v1.1.0

type Settings struct {
	CDP worker.CDPSettings
}

type Version added in v1.2.0

type Version struct {
	Chrome ChromeVersion `json:"chrome"`
	Ferret string        `json:"ferret"`
}

Jump to

Keyboard shortcuts

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