console

package
v0.0.0-...-026000c Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LinksStack = stack.New()

Links for analyse

View Source
var ResultLinks = set.New()

Result links

View Source
var StartUrl *url.URL

Start analyse URL

View Source
var VisitedLinks = set.New()

Set of visited links

Functions

func InitApp

func InitApp() *cli.App

Init console application

func Parse

func Parse(c *cli.Context) error

Start parse site

func RunCrawler

func RunCrawler(url string, sourceUrl string)

Run page crawler

func SaveResultLinks(pages *set.Set, filename string)

Save Page-struct to file

func SaveVisitedLinks(links *set.Set, filename string)

Save visited links to file

Types

type Link struct {
	Link   string
	Source string
}

Visited link

type Page

type Page struct {
	Link   string
	Source string
	Type   string
	Status int
}

Page of site

Jump to

Keyboard shortcuts

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