url

package
v0.58.1-0...-af594cf Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PassValidator

type PassValidator struct{}

PassValidator passes all URLs

func (PassValidator) Validate

func (PassValidator) Validate(*url.URL) error

type PrivateIPValidator

type PrivateIPValidator struct{}

PrivateIPValidator validates that a url does not communicate with a private IP range

func (PrivateIPValidator) Validate

func (PrivateIPValidator) Validate(u *url.URL) error

type Validator

type Validator interface {
	Validate(*url.URL) error
}

Validator reports whether a given URL is valid.

Jump to

Keyboard shortcuts

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