Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRequest ¶
type MockRequest struct { Tag string `json:"tag"` Method string `json:"method"` Path string `json:"path"` ResponseDelayInMillis int64 `json:"responseDelayInMillis"` ResponseStatus int `json:"responseStatus"` ResponseBody interface{} `json:"responseBody"` }
MockRequest is the request body for the mock endpoint
func (*MockRequest) Default ¶
func (r *MockRequest) Default()
Default is used to set default values for the missing request fields
func (*MockRequest) Validate ¶
func (r *MockRequest) Validate() error
Validate is used to validate the request
type UnMockRequest ¶
type UnMockRequest struct { Tag string `json:"tag"` Method string `json:"method"` Path string `json:"path"` }
UnMockRequest is the request body for the unMock endpoint
func (*UnMockRequest) Clean ¶
func (r *UnMockRequest) Clean()
Clean is used to clean the request path
Click to show internal directories.
Click to hide internal directories.