Documentation ¶
Index ¶
- Variables
- func DumpResult(path, spiderName, message string)
- func GetLocalIp() string
- func HashString(encode string) uint64
- func LoadSettingFromFile(fileName string, setting *Settings)
- func MkdirIfNotExist(path string)
- func ScanSpider(dir string)
- type Index
- type IntKey
- type Key
- type Node
- type Settings
- type SkipList
Constants ¶
This section is empty.
Variables ¶
View Source
var BasicLevel int = 0
View Source
var SupporseRange int = 5
Functions ¶
func DumpResult ¶
func DumpResult(path, spiderName, message string)
os.Getwn() + "/"+path add fileName with message
func GetLocalIp ¶
func GetLocalIp() string
func HashString ¶
func LoadSettingFromFile ¶
load json config change 127.0.0.1 to basic ip
func MkdirIfNotExist ¶
func MkdirIfNotExist(path string)
func ScanSpider ¶
func ScanSpider(dir string)
Types ¶
type Settings ¶
type Settings struct { HttpPort int MulticastEnable bool Name string NodeList []string TcpPort int LogPath string ConfigFile string DownloadInterval int }
settings
func NewSettings ¶
func NewSettings() *Settings
type SkipList ¶
type SkipList struct {
// contains filtered or unexported fields
}
func NewSkipList ¶
func NewSkipList() *SkipList
Click to show internal directories.
Click to hide internal directories.