crawler

package
v0.0.0-...-fb0ae27 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrawlReply

type CrawlReply struct {
	//The crawl reply passes an array of multiple urls, whereas reply alone passes messages only.
	Status string
	Data   []string
}

type Crawler

type Crawler int

func (*Crawler) Crawl

func (c *Crawler) Crawl(data string, reply *CrawlReply) error

func (*Crawler) Request

func (c *Crawler) Request(url string, reply *Reply) error

func (*Crawler) Respond

func (c *Crawler) Respond(seed string, reply *Reply) error

type Reply

type Reply struct {
	// This is a struct to be passed when replying messages from RPC functions in nodes to the master.
	Status string
	Data   string
}

Jump to

Keyboard shortcuts

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