Back to godoc.org

Package server

v1.7.0
Latest Go to latest

The highest tagged major version is .

Published: Sep 15, 2020 | License: Apache-2.0 | Module: github.com/MontFerret/worker

Index

type ChromeVersion

type ChromeVersion struct {
	Browser  string `json:"browser"`
	Protocol string `json:"protocol"`
	V8       string `json:"v8"`
	WebKit   string `json:"webkit"`
}

type HttpError

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

type Script

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

type Settings struct {
	Version       string
	FerretVersion string
	CDP           worker.CDPSettings
}

type Version

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier