rack

package module
Version: v5.0.0-...-beacedc Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2014 License: MIT Imports: 1 Imported by: 4

README

rack

rack for go - inspired by ruby rack from chneukirchen

see wrapper directory to get an idea, how to write a wrapper see example directory to know how to use it

This was the now deprecated ancestor of the go-on/wrap library. Please use that one - it is well maintained and should not have any API changes in the future (fingers crossed).

I just leave the repo, so that anyone depending on it will not get angry. But I guess, I will delete it in a year or so...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(h http.Handler, middleware ...Wrapper) (ø *rack)

add middleware in the order in which it is processed (i.e. reverse of rack.Wrap)

Types

type Racker

type Racker interface {
	http.Handler
	Wrap(wrapper ...Wrapper)
}

type Wrapper

type Wrapper interface {
	Wrap(http.Handler) http.Handler
}

Source Files

Directories

Path Synopsis
example
mux

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL