Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
func NewBasicAuthMiddleware ¶
func NewBasicAuthMiddleware(realm string, authFunc authenticator, authorizeFunc authorizator) Middleware
func NewLoggingMiddleware ¶
func NewLoggingMiddleware(loggers ...Logger) Middleware
An un-customizable logging middleware
type ResponseWriter ¶
type ResponseWriter interface {
http.ResponseWriter
Status() int
}
strip down version of https://godoc.org/github.com/codegangsta/negroni#ResponseWriter at the moment it only supports recording of status
func NewResponseWriter ¶
func NewResponseWriter(rw http.ResponseWriter) ResponseWriter
type Tea ¶
func (*Tea) Apply ¶
func (t *Tea) Apply(h http.HandlerFunc, middlewares ...Middleware) http.HandlerFunc
func (*Tea) Use ¶
func (t *Tea) Use(h Middleware)
Click to show internal directories.
Click to hide internal directories.