transport

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() (c *http.Client, err error)

func TestTransport added in v0.3.3

func TestTransport(t *testing.T)

Types

type ChromeDpTransport added in v0.3.6

type ChromeDpTransport struct {
	Ctx               context.Context
	Cancel            context.CancelFunc
	RemoteAllocCancel context.CancelFunc
	// contains filtered or unexported fields
}

ChromeDpTransport : structure for chromedp instance

func NewChromeDpTransport added in v0.3.6

func NewChromeDpTransport(upstream http.RoundTripper) (*ChromeDpTransport, error)

NewChromeDpTransport : initialize a new transport

func (*ChromeDpTransport) RoundTrip added in v0.3.6

func (t *ChromeDpTransport) RoundTrip(r *http.Request) (*http.Response, error)

RoundTrip: extends the RoundTrip API for usage as a colly transport

type LogAction added in v0.3.6

type LogAction struct {
	Message string
}

func (LogAction) Do added in v0.3.6

func (a LogAction) Do(ctx context.Context) error

type SeleniumTransport added in v0.3.6

type SeleniumTransport struct {
	WebDriver selenium.WebDriver
	// contains filtered or unexported fields
}

func NewSeleniumTransport

func NewSeleniumTransport(upstream http.RoundTripper, seleniumURL string) (*SeleniumTransport, error)

func (*SeleniumTransport) RoundTrip added in v0.3.6

func (t *SeleniumTransport) RoundTrip(r *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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