Directories ¶
Path | Synopsis |
---|---|
src
|
|
github.com/Xe/middleware/xrequestid
Package xrequestid implements an http middleware for Negroni that assigns a random id to each request Example: package main import ( "fmt" "net/http" "github.com/codegangsta/negroni" "github.com/pilu/xrequestid" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "X-Request-Id is `%s`", r.Header.Get("X-Request-Id")) }) n := negroni.New() n.Use(xrequestid.New(16)) n.UseHandler(mux) n.Run(":3000") }
|
Package xrequestid implements an http middleware for Negroni that assigns a random id to each request Example: package main import ( "fmt" "net/http" "github.com/codegangsta/negroni" "github.com/pilu/xrequestid" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "X-Request-Id is `%s`", r.Header.Get("X-Request-Id")) }) n := negroni.New() n.Use(xrequestid.New(16)) n.UseHandler(mux) n.Run(":3000") } |
github.com/codegangsta/negroni
Package negroni is an idiomatic approach to web middleware in Go.
|
Package negroni is an idiomatic approach to web middleware in Go. |
github.com/drone/routes
Package routes a simple http routing API for the Go programming language, compatible with the standard http.ListenAndServe function.
|
Package routes a simple http routing API for the Go programming language, compatible with the standard http.ListenAndServe function. |
github.com/drone/routes/exp/cookie/authcookie
Package authcookie implements creation and verification of signed authentication cookies.
|
Package authcookie implements creation and verification of signed authentication cookies. |
github.com/drone/routes/exp/routes
Package routes a simple http routing API for the Go programming language, compatible with the standard http.ListenAndServe function.
|
Package routes a simple http routing API for the Go programming language, compatible with the standard http.ListenAndServe function. |
github.com/e-dard/tock
Package tock provides a Ticker which is API-compatible with a time.Ticker, but also allows the caller to stop, restart, and adjust duration with which the Ticker ticks.
|
Package tock provides a Ticker which is API-compatible with a time.Ticker, but also allows the caller to stop, restart, and adjust duration with which the Ticker ticks. |
github.com/googollee/go-socket.io
go-socket.io is the implement of socket.io in golang.
|
go-socket.io is the implement of socket.io in golang. |
github.com/gorilla/websocket
Package websocket implements the WebSocket protocol defined in RFC 6455.
|
Package websocket implements the WebSocket protocol defined in RFC 6455. |
github.com/gorilla/websocket/examples/autobahn
Command server is a test server for the Autobahn WebSockets Test Suite.
|
Command server is a test server for the Autobahn WebSockets Test Suite. |
github.com/ogier/pflag
pflag is a drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
|
pflag is a drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags. |
Click to show internal directories.
Click to hide internal directories.