crawler

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheck

func HealthCheck(w http.ResponseWriter, _ *http.Request)

HealthCheck is used to verify if the service is up and running

func Router

func Router() *mux.Router

Router register necessary routes and returns an instance of a router.

func Run

func Run(w http.ResponseWriter, r *http.Request)

Run executes crawler and collect links from the pages

func Validate

func Validate(URL string) error

Validate accepts URL and check if it is valid

Types

type LinkInfo

type LinkInfo struct {
	StatusCode int
	Links      []string
}

LinkInfo is a simple struct which collect links from website

Jump to

Keyboard shortcuts

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