Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server is a light utility wrapper around httptest.Server which provides a useful RootedURL function.
func NewRootedServer ¶
NewRootedServer creates an httptest.Server that uses the given route as the REST handler rooted at the given path.
func NewRootedService ¶
NewRootedService creates an httptest.Server that uses the given service as the REST handler rooted at the given path.
func NewServer ¶
NewServer creates an httptest.Server that uses the given route as the REST handler.
func NewService ¶
NewService creates an httptest.Server that uses the given service as the REST handler.
Click to show internal directories.
Click to hide internal directories.