Documentation ¶
Index ¶
- func MockError() func(http.ResponseWriter, *http.Request, map[string]string)
- func MockResource(postHandler PostHandler, filenames ...string) func(http.ResponseWriter, *http.Request, map[string]string)
- func MockResourceId(filename string) func(http.ResponseWriter, *http.Request, map[string]string)
- func MockResourceRateLimit() func(http.ResponseWriter, *http.Request, map[string]string)
- func NewMock(postHandler PostHandler, dir string, lastRequestHeader ...*map[string][]string) (*http.Client, string)
- type PostHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockResource ¶
func MockResource(postHandler PostHandler, filenames ...string) func(http.ResponseWriter, *http.Request, map[string]string)
func MockResourceId ¶
func MockResourceRateLimit ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.