redirect

package
v0.0.0-...-31c8788 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const FailureMode = "redirect"

FailureMode name

Variables

This section is empty.

Functions

This section is empty.

Types

type Redirect

type Redirect struct {
	URL  *jsontypes.URL `json:"url,omitempty"`
	Code int            `json:"code,omitempty"`
}

func NewDriver

func NewDriver() *Redirect

NewDriver returns a new instance of Redirect

func (Redirect) Handle

func (h Redirect) Handle(w http.ResponseWriter, r *http.Request) error

Handle the error

func (Redirect) Validate

func (h Redirect) Validate() error

Validate verifies that this module is functional with the given configuration

Jump to

Keyboard shortcuts

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