remote_ip

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct{}

func (Filter) Create

func (f Filter) Create(cfg interface{}) (filter.Requirement, error)

type Requirement

type Requirement struct {
	WithinRaw string    `yaml:"within"`
	Within    net.IPNet `yaml:"-"`
}

func (Requirement) VerifyAuthorization added in v0.7.0

func (r Requirement) VerifyAuthorization(req *http.Request, _ *auth.Token) error

Jump to

Keyboard shortcuts

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