config

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Thread        int
	ProxyURL      string
	SkipSSLVerify bool
	Timeout       time.Duration
	URL           string
	Verbose       bool
}

func ConfigFromOptions

func ConfigFromOptions(parseOpts *ConfigOptions) (*Config, error)

func NewConfig

func NewConfig() Config

type ConfigOptions

type ConfigOptions struct {
	General GeneralOptions
	HTTP    HTTPOptions
}

func NewConfigOptions

func NewConfigOptions() *ConfigOptions

type GeneralOptions

type GeneralOptions struct {
	Verbose bool
	Debug   bool
	Thread  int
}

type HTTPOptions

type HTTPOptions struct {
	ProxyURL      string
	Timeout       time.Duration
	SkipSSLVerify bool
	URL           string
}

Jump to

Keyboard shortcuts

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