connectors

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 25 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: Chromium/Docker/Cypress

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPI

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

func NewBrowser

func NewBrowser(url string, cfg *config.BrowserConnectorConfig) *browserConnector

func NewFile added in v0.0.39

func NewFile(cfg *config.FileConnectorConfig) *fileConnector

func NewStatic added in v0.0.10

func NewStatic(cfg *config.StaticConnectorConfig) *staticConnector

Types

type Connector

type Connector interface {
	Get(parsedValue builder.Interfacable, index *uint32, input builder.Interfacable) ([]byte, error)
}

func NullSafe added in v1.0.7

func NullSafe(original Connector) Connector

func WithAttempts

func WithAttempts(original Connector, attempts uint32) Connector

Jump to

Keyboard shortcuts

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