Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoutedService ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(address string, config ServerConfig) *Server
type ServerConfig ¶
type TestServer ¶
func NewTestServer ¶
func NewTestServer(service RoutedService) *TestServer
NewTestServer creates a new test server based on the provided routed service
func (*TestServer) Request ¶
func (t *TestServer) Request(r *http.Request) *httptest.ResponseRecorder
Click to show internal directories.
Click to hide internal directories.