connectors

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 14 Imported by: 0

README

Connector

Package which provide data for parsing:

  1. Server - pure http calls and parsing response
  2. Browser - emulation of the real browser

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultClient = &http.Client{
		Timeout: timeout,
	}
)

Functions

func NewAPI

func NewAPI(cfg *config.ServerConnectorConfig, client *http.Client) *apiConnector

func NewBrowser

func NewBrowser(cfg *config.BrowserConnectorConfig) *browserConnector

Types

type Connector

type Connector interface {
	Get() ([]byte, error)
}

func WithAttempts

func WithAttempts(original Connector, attempts uint32) Connector

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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