Documentation ¶ Index ¶ func Apply(next http.Handler, middlewares ...baker.Middleware) http.Handler func Parse(rules []baker.Rule) ([]baker.Middleware, error) type PathAppend func (p *PathAppend) Process(next http.Handler) http.Handler type PathReplace func (p *PathReplace) Process(next http.Handler) http.Handler 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 PathAppend ¶ type PathAppend struct { Begin string `json:"begin"` End string `json:"end"` } func (*PathAppend) Process ¶ func (p *PathAppend) Process(next http.Handler) http.Handler type PathReplace ¶ type PathReplace struct { Search string `json:"search"` Replace string `json:"replace"` Times int `json:"times"` } func (*PathReplace) Process ¶ func (p *PathReplace) Process(next http.Handler) http.Handler Source Files ¶ View all Source files middleware.gopath_append.gopath_replace.go Click to show internal directories. Click to hide internal directories.