Godoc for middleware packages and server package

This commit is contained in:
Matthew Holt 2015-01-29 23:52:18 -07:00
parent bcdf04d00e
commit ae2a2d5b00
7 changed files with 12 additions and 7 deletions

View File

@ -1,4 +1,4 @@
// Extensionless is middleware for clean URLs. A root path is // Package extensionless is middleware for clean URLs. A root path is
// passed in as well as possible extensions to add, internally, // passed in as well as possible extensions to add, internally,
// to paths requested. The first path+ext that matches a resource // to paths requested. The first path+ext that matches a resource
// that exists will be used. // that exists will be used.

View File

@ -1,3 +1,5 @@
// Package gzip provides a simple middleware layer that performs
// gzip compression on the response.
package gzip package gzip
import ( import (

View File

@ -1,3 +1,6 @@
// Package headers provides middleware that appends headers to
// requests based on a set of configuration rules that define
// which routes receive which headers.
package headers package headers
import ( import (

View File

@ -1,3 +1,4 @@
// Package log implements basic but useful request logging middleware.
package log package log
import ( import (

View File

@ -1,4 +1,4 @@
// Proxy is middleware that proxies requests. // Package proxy is middleware that proxies requests.
package proxy package proxy
import ( import (

View File

@ -1,4 +1,4 @@
// Redirect is middleware for redirecting certain requests // Package redirect is middleware for redirecting certain requests
// to other locations. // to other locations.
package redirect package redirect

View File

@ -1,7 +1,6 @@
// Server implements a configurable, general-purpose web server. It // Package server implements a configurable, general-purpose web server.
// relies on configurations obtained from the adjacent config package // It relies on configurations obtained from the adjacent config package
// and can execute middleware as defined by the adjacent middleware // and can execute middleware as defined by the adjacent middleware package.
// package.
package server package server
import ( import (