vhost

package
v0.0.0-...-3f1871c Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: MIT, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name exposes the rule name identifier.
	Name = "vhost"
	// Description exposes the rule semantic description.
	Description = "Matches HTTP request by Host header"
)

Variables

View Source
var Rule = rule.Info{
	Name:        Name,
	Description: Description,
	Factory:     factory,
	Params:      params,
}

Rule exposes the rule metadata information. Mostly used internally.

Functions

func New

func New(host string) (rule.Rule, error)

New creates a new rule who filters the traffic if matches with the following path expression. Regular expressions is supported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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