Documentation ¶ Index ¶ func Apply(next http.Handler, middlewares ...baker.Middleware) http.Handler func Parse(rules []baker.Rule) ([]baker.Middleware, error) type AppendPath func (p *AppendPath) Process(next http.Handler) http.Handler type ReplacePath func (p *ReplacePath) 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 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 Source Files ¶ View all Source files middleware.gopath_append.gopath_replace.go Click to show internal directories. Click to hide internal directories.