robots

package
v0.0.0-...-c20d51c Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package robots provides support for parsing robots.txt files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RobotsData

type RobotsData struct {
	Groups []RobotsGroup
}

func GetRobotsForURL

func GetRobotsForURL(target *url.URL, factory client.ClientFactory) (*RobotsData, error)

func ParseRobotsTxt

func ParseRobotsTxt(text []byte) (*RobotsData, error)

func (*RobotsData) GetAllPaths

func (data *RobotsData) GetAllPaths() []string

func (*RobotsData) GetForUserAgent

func (data *RobotsData) GetForUserAgent(targetAgent string) []string

type RobotsGroup

type RobotsGroup struct {
	UserAgents []string
	Disallow   []string
}

Jump to

Keyboard shortcuts

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