settings

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WantedTagsSet = make(map[string]bool)

Functions

func SetupSetting

func SetupSetting() error

Types

type CrawlerSettingS

type CrawlerSettingS struct {
	PageStart        int
	PageEnd          int
	ProxyHost        string
	EnableProxy      bool
	TagConsumerCount int
	HonConsumerCount int
	HonBuffer        int
	TagBuffer        int
	EnableFilter     bool
	WantedTags       []string
}

add config struct

var CrawlerSetting *CrawlerSettingS

type Setting

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

general operation for Viper

func NewSetting

func NewSetting(configs ...string) (*Setting, error)

func (*Setting) ReadSection

func (s *Setting) ReadSection(k string, v interface{}) error

Jump to

Keyboard shortcuts

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