Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
HTTPServer is a wrapper for an http server that implements the server interface.
func (*HTTPServer) Close ¶
func (*HTTPServer) Close()
Close does nothing but exists to satisfy the server interface.
func (*HTTPServer) Start ¶
func (s *HTTPServer) Start() error
Start starts the http server. Always returns a non-nil error.
type HTTPTestServer ¶
HTTPTestServer is a wrapper for an httptest server that implements the server interface.
func (*HTTPTestServer) Start ¶
func (s *HTTPTestServer) Start() error
Start start the server. Always returns a nil error.
type Runner ¶
type Runner struct {
Server Server
}
func CreateHTTPServerRunner ¶
func CreateHTTPServerRunner(routerFactory router.RouterFactory) Runner
CreateHTTPServerRunner creates a new Runner using an HTTPServer.
func CreateHTTPTestServerRunner ¶
func CreateHTTPTestServerRunner(routerFactory router.RouterFactory) Runner
CreateHTTPTestServerRunner creates a new Runner using an HTTPTestServer.
Click to show internal directories.
Click to hide internal directories.