checks

package
v0.0.0-...-a59df93 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2015 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error404Hash

func Error404Hash(s site.Site) ([hash.Size]byte, error)

func FilterInterestingHeaders

func FilterInterestingHeaders(headers http.Header) http.Header

func FullPathDisclosure

func FullPathDisclosure(s site.Site) (bool, error)

func HasBasicAuth

func HasBasicAuth(s site.Site) (bool, error)

HasBasicAuth checks if the website supports basic authentification

func HasLog

func HasLog(s site.Site, log_url string, pattern string) (bool, error)

func HasReadMe

func HasReadMe(s site.Site) (bool, error)

func HasXMLrpc

func HasXMLrpc(s site.Site) (bool, error)

HasXMLrpc checks if the website supports XML RPC

func HomepageHash

func HomepageHash(s site.Site) ([hash.Size]byte, error)

func Online

func Online(s site.Site) bool

Online checks if the website is up

func RSSURL

func RSSURL(s site.Site) (string, error)

ToDO: TESTS

func ReadMeURL

func ReadMeURL(s site.Site) string

func RegistrationEnabled

func RegistrationEnabled(s site.Site) (bool, error)

Types

type RobotsTxt

type RobotsTxt interface {
	HasRobotsTxt() (bool, error)
	ParseRobotsTxt() ([]string, error)
}

RobotsTxt is an interface which wraps operations with robots.txt

func NewRobotsTxt

func NewRobotsTxt(s site.Site) (RobotsTxt, error)

NewRobotsTxt returns new RobotsTxt to work with a site referenced by the given url

Jump to

Keyboard shortcuts

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