http

package
v0.0.0-...-a95d079 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

func NewRouter

func NewRouter(node *Node.Node, reporter, distributer action.Watcher, rpcClient action.RpcClientAnts) *Router

func (*Router) Cluster

func (this *Router) Cluster(w http.ResponseWriter, r *http.Request)

func (*Router) Crawl

func (this *Router) Crawl(w http.ResponseWriter, r *http.Request)

try to start spider if ok * tell other node start spider * start reporter and distribute in this node

func (*Router) CrawlCluster

func (this *Router) CrawlCluster(w http.ResponseWriter, r *http.Request)

func (*Router) CrawlNode

func (this *Router) CrawlNode(w http.ResponseWriter, r *http.Request)

func (*Router) ServeHTTP

func (this *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Router) Spiders

func (this *Router) Spiders(w http.ResponseWriter, r *http.Request)

func (*Router) Welcome

func (this *Router) Welcome(w http.ResponseWriter, r *http.Request)

type StartSpiderResult

type StartSpiderResult struct {
	Success bool
	Message string
	Spider  string
	Time    string
}

result of start spider

type WelcomeInfo

type WelcomeInfo struct {
	Message  string
	Greeting string
	Time     string
}

welcome struct

Jump to

Keyboard shortcuts

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