middleware

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(next http.Handler, middlewares ...baker.Middleware) http.Handler

func Parse

func Parse(rules []baker.Rule) ([]baker.Middleware, error)

Types

type AppendPath added in v1.0.1

type AppendPath struct {
	Begin string `json:"begin"`
	End   string `json:"end"`
}

func (*AppendPath) Process added in v1.0.1

func (p *AppendPath) Process(next http.Handler) http.Handler

type ReplacePath added in v1.0.1

type ReplacePath struct {
	Search  string `json:"search"`
	Replace string `json:"replace"`
	Times   int    `json:"times"`
}

func (*ReplacePath) Process added in v1.0.1

func (p *ReplacePath) Process(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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