server

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 7 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"`
	V8       string `json:"v8"`
	WebKit   string `json:"webkit"`
}

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, error)

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 {
	Version       string
	FerretVersion string
	CDP           worker.CDPSettings
}

type Version added in v1.2.0

type Version struct {
	Worker string        `json:"worker"`
	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