conf

package
v0.0.0-...-da513fb Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Log           string   `json:"log"`
	Dir           string   `json:"dir"`
	FileTypes     []string `json:"fileTypes"`
	Proxy         *Proxy   `json:"proxy"`
	Option        *Option  `json:"option"`
	Headless      Headless `json:"headless"`
	UserAgent     string   `json:"userAgent"`
	DisableCookie bool     `json:"enableCookie"`
}

type Headless

type Headless struct {
	Enable  bool `json:"enable"`
	Timeout int  `json:"timeout"`
}

type Option

type Option struct {
	Depth            int  `json:"depth"`
	MaxConcurrency   int  `json:"maxConcurrency"`
	ExternalWebpages bool `json:"externelWebpages"`
}

type Proxy

type Proxy struct {
	Protocol string `json:"protocol"`
	Port     int    `json:"port"`
	Address  string `json:"address"`
}

func (*Proxy) URL

func (p *Proxy) URL() *url.URL

Jump to

Keyboard shortcuts

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