robots

package
v1.3.33 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RobotsTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RoboTester

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

func NewRoboTester

func NewRoboTester(fullURL string) *RoboTester

func (*RoboTester) GetDelay

func (rt *RoboTester) GetDelay() time.Duration

GetDelay - be as careful as possible, if there are two definitions - sum them up and use both

func (*RoboTester) GetRobots

func (rt *RoboTester) GetRobots(path string) (robots *robotstxt.RobotsData, err error)

func (*RoboTester) InitWithUA

func (rt *RoboTester) InitWithUA(ua string)

func (*RoboTester) Test

func (rt *RoboTester) Test(path string) bool

Jump to

Keyboard shortcuts

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