extractor

package
v0.0.0-...-84ac779 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: BSD-3-Clause-Clear Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogOriginInbound  = "<- Origin"
	LogOriginOutbound = "-> Origin"

	LogInjectInbound  = "<- Inject"
	LogInjectOutbound = "-> Inject"

	LogDevelopInbound  = "<- Develop"
	LogDevelopOutbound = "-> Develop"

	JobInject  = "inject"
	JobDevelop = "develop"

	Thread     = 3             // Correction probability
	WeightUnit = 1000 * Thread // 1‰
)

Variables

View Source
var (
	ErrDataIsTooLong = errors.New("data is too long")
)

Functions

This section is empty.

Types

type Extractor

type Extractor interface {
	Inject() error
	Close()
}

func New

func New(redisClient *redis.Client, localConn net.Conn, remoteRawURL string, option Option) (Extractor, error)

type Option

type Option struct {
	Token   string
	Pool    string
	Wallet  string
	Weight  float64
	Rename  string
	Timeout int
}

Jump to

Keyboard shortcuts

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