conf

package
v0.0.0-...-8c9a481 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Root         *url.URL
	Proxy        *Proxy
	ImageExp     []*MatchExp
	PageRegex    []*regexp.Regexp
	ImgPageRegex []*regexp.Regexp
	HrefExp      []*MatchExp
	Header       map[string]string
	Charset      string
}

func (*Config) Load

func (c *Config) Load(file string) error

type MatchExp

type MatchExp struct {
	Query  string
	Attr   string
	Folder interface{} //可选值url,title,none,正则表达式
}

type Proxy

type Proxy struct {
	Server   string
	UserName string
	Password string
}

Jump to

Keyboard shortcuts

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