Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestServer ¶
func NewTestServer ¶
func NewTestServer(routes map[string]Response) *TestServer
func (*TestServer) ServeHTTP ¶
func (s *TestServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*TestServer) SetRoute ¶
func (s *TestServer) SetRoute(name string, resp Response)
func (*TestServer) Stats ¶
func (s *TestServer) Stats(name string) (st Stat)
Click to show internal directories.
Click to hide internal directories.