Documentation ¶
Overview ¶
Package ephemeral provides a way to create and stop an ephemeral Web server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler func(*Server, http.ResponseWriter, *http.Request)
Handler represents the type of functions used as handlers with an ephemeral Server
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a wrapper for an ephemeral http.Server.
func (*Server) HandleFunc ¶
HandleFunc adds a new handler for a given path
Directories ¶
Path | Synopsis |
---|---|
Godeps
|
|
_workspace/src/github.com/stretchr/testify/assert
A set of comprehensive testing tools for use with the normal Go testing system.
|
A set of comprehensive testing tools for use with the normal Go testing system. |
_workspace/src/github.com/stretchr/testify/require
Alternative testing tools which stop test execution if test failed.
|
Alternative testing tools which stop test execution if test failed. |
Click to show internal directories.
Click to hide internal directories.