lib

package
v0.0.0-...-b0a6367 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2016 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Trace   *log.Logger
	Info    *log.Logger
	Warning *log.Logger
	Error   *log.Logger
)

Functions

func CheckLinks(urlString string, parallel int, results chan VisitedURL)
func GetAllLinks(url u.URL, errChan chan<- error) chan u.URL

func InitLogging

func InitLogging(
	traceHandle io.Writer,
	infoHandle io.Writer,
	warningHandle io.Writer,
	errorHandle io.Writer)

func SetLogLevel

func SetLogLevel(level Level)

Types

type ColoredWriter

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

func (ColoredWriter) Write

func (cw ColoredWriter) Write(p []byte) (n int, err error)

type Level

type Level int
const (
	TRACE Level = 1 << iota
	INFO  Level = 2
	WARN  Level = 4
	ERROR Level = 8
)

type QueryT

type QueryT struct {
	Url    u.URL
	Origin string
}

type Result

type Result struct {
	Url    string
	Status string
}
type Search struct {
	// contains filtered or unexported fields
}

type VisitedURL

type VisitedURL struct {
	Query        QueryT
	Status       string
	LinkedUrls   map[u.URL]bool
	HadProblems  bool
	WithinDomain bool
}

Jump to

Keyboard shortcuts

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