Documentation ¶
Index ¶
- func MatchAny(*http.Request) bool
- func ScopesResponder(scopes string) func(*http.Request) (*http.Response, error)
- type Matcher
- type Registry
- type Responder
- func FileResponse(filename string) Responder
- func GQLMutation(body string, cb func(map[string]interface{})) Responder
- func GQLQuery(body string, cb func(string, map[string]interface{})) Responder
- func JSONResponse(body interface{}) Responder
- func RESTPayload(responseStatus int, responseBody string, ...) Responder
- func StatusStringResponse(status int, body string) Responder
- func StringResponse(body string) Responder
- type Stub
- type Testing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registry ¶
func NewRegistry ¶
type Responder ¶
func FileResponse ¶
func GQLMutation ¶
func JSONResponse ¶
func JSONResponse(body interface{}) Responder
func RESTPayload ¶
func StatusStringResponse ¶
func StringResponse ¶
Click to show internal directories.
Click to hide internal directories.