collector

package
v2.0.4+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Browsers = map[string]Browser{}
	Services = sync.Map{}
)

Functions

func BrowserKeys

func BrowserKeys() []string

func RandomName

func RandomName(n int) string

func ServiceClose

func ServiceClose(engine ...string) (err error)

func ServiceSet

func ServiceSet(engine string, browser Browser)

Types

type Base

type Base struct {
	Proxy       string
	Timeout     int
	RandomDelay string
	// contains filtered or unexported fields
}

func (*Base) Close

func (s *Base) Close() error

func (*Base) Description

func (s *Base) Description() string

func (*Base) Do

func (s *Base) Do(pageURL string, data echo.Store) ([]byte, error)

func (*Base) Name

func (s *Base) Name() string

func (*Base) Sleep

func (s *Base) Sleep() Browser

func (*Base) SleepSeconds

func (s *Base) SleepSeconds() int

func (*Base) Start

func (s *Base) Start(opt echo.Store) (err error)

func (*Base) Transcoded

func (s *Base) Transcoded() bool

type Browser

type Browser interface {
	Start(echo.Store) error
	Close() error
	Name() string
	Description() string
	Transcoded() bool
	Do(pageURL string, data echo.Store) ([]byte, error)
}

func ServiceGet

func ServiceGet(engine string) (browser Browser)

Directories

Path Synopsis
driver

Jump to

Keyboard shortcuts

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