config

package
v1.2.3-sp3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ElementAttribute = []string{
	"placeholder", "id", "name", "value", "alt",
}
View Source
var ElementProperty = []string{
	"innerHTML",
}
View Source
var KeywordAttribute = append(ElementAttribute, ElementProperty...)
View Source
var KeywordDict = map[string][]string{
	"username": usernameKeyword,
	"password": passwordKeyword,
	"captcha":  captchaKeyword,
	"login":    loginKeyword,
}
View Source
var SimpleKeywordDict = map[string][]string{
	"username": simpleUsernameKeyword,
	"password": simplePasswordKeyword,
	"captcha":  simpleCaptchaKeyword,
	"login":    simpleLoginKeyword,
}

Functions

This section is empty.

Types

type ConfigFunc

type ConfigFunc func(config *PageConfig)

func WithContext

func WithContext(context context.Context) ConfigFunc

func WithExePath added in v1.2.3

func WithExePath(exePath string) ConfigFunc

func WithLeakless added in v1.2.4

func WithLeakless(leakless LeaklessMode) ConfigFunc

func WithProxyConfig

func WithProxyConfig(proxyStrs ...string) ConfigFunc

func WithUrlConfig

func WithUrlConfig(urlStr string) ConfigFunc

func WithWsAddress

func WithWsAddress(wsAddress string) ConfigFunc

type LeaklessMode added in v1.2.4

type LeaklessMode int
const (
	LeaklessDefault LeaklessMode = 0
	LeaklessOn      LeaklessMode = 1
	LeaklessOff     LeaklessMode = -1
)

type PageConfig

type PageConfig struct {
	// contains filtered or unexported fields
}

func (*PageConfig) Context

func (pageConfig *PageConfig) Context() context.Context

func (*PageConfig) ExePath added in v1.2.3

func (pc *PageConfig) ExePath() string

func (*PageConfig) Leakless added in v1.2.4

func (pageConfig *PageConfig) Leakless() LeaklessMode

func (*PageConfig) Proxy

func (pc *PageConfig) Proxy() (string, string, string)

func (*PageConfig) Url

func (pc *PageConfig) Url() string

func (*PageConfig) WsAddress

func (pc *PageConfig) WsAddress() string

Jump to

Keyboard shortcuts

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