Documentation
¶
Index ¶
- func FreezeTime() func()
- func Get(uri string, opts ...ReqOption) (*http.Response, []byte, error)
- func MakeRequest(uri string, opts ...ReqOption) (*http.Response, []byte, error)
- func NewHandler(handler http.HandlerFunc) *httptest.Server
- func NewResponder(response string) *httptest.Server
- func ParseURI(uri string) *url.URL
- func Post(uri string, opts ...ReqOption) (*http.Response, []byte, error)
- type ReqOption
- type ReqOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FreezeTime ¶ added in v1.4.0
func FreezeTime() func()
FreezeTime to the predetermined time. Returns a function that should be deferred to unfreeze time. Meant for testing.
func MakeRequest ¶
MakeRequest create and do a request.
func NewHandler ¶
func NewHandler(handler http.HandlerFunc) *httptest.Server
NewHandler creates a new Server.
func NewResponder ¶
NewResponder creates a new Server with response.
Types ¶
Click to show internal directories.
Click to hide internal directories.