config

package
v0.0.0-...-fa848ac Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Dev development env
	Dev = "dev"
	// Test test env
	Test = "test"
	// Production production env
	Production = "production"
)

Variables

This section is empty.

Functions

func GetListenAddr

func GetListenAddr() string

GetListenAddr get listen address

Types

type Crawler

type Crawler struct {
	Name     string
	Interval time.Duration
	MaxPage  int
}

func GetCrawlers

func GetCrawlers() []*Crawler

GetCrawlers get crawlers config

type Detect

type Detect struct {
	URL      string
	Interval time.Duration
	Timeout  time.Duration
	MaxTimes int
}

Detect detect config

func GetDetect

func GetDetect() *Detect

GetDetect get detect config

Jump to

Keyboard shortcuts

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