util

package
v0.0.0-...-24ed229 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpResult

func DumpResult(path, spiderName, message string)

os.Getwn() + "/"+path add fileName with message

func GetLocalIp

func GetLocalIp() string

func HashString

func HashString(encode string) uint64

func LoadSettingFromFile

func LoadSettingFromFile(fileName string, setting *Settings)

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
}

settings

func NewSettings

func NewSettings() *Settings

Jump to

Keyboard shortcuts

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