Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointConfig ¶
type EndpointConfig struct {
Route string `json:"route"`
Method string `json:"method"`
Response EndpointConfigResponse `json:"response"`
ResponseStatusCode int `json:"response_status_code"`
ResponseIf []ResponseIf `json:"response_if"`
Headers map[string]string `json:"response_headers"`
HeadersBase map[string]string `json:"response_headers_base"`
}
type EndpointConfigResponse ¶
type EndpointConfigResponse []byte
func (*EndpointConfigResponse) UnmarshalJSON ¶
func (this *EndpointConfigResponse) UnmarshalJSON(data []byte) (err error)
type Endpoint_content_type ¶
type Endpoint_content_type int
const ( Endpoint_content_type_file Endpoint_content_type = iota Endpoint_content_type_shell Endpoint_content_type_exec Endpoint_content_type_fileserver Endpoint_content_type_json Endpoint_content_type_plaintext Endpoint_content_type_unknown )
type MockFs ¶
type MockFs interface {
StoreRequestRecord(r *http.Request, requestBody []byte, endpointConfig *EndpointConfig) error
GetRecordsMatchingRoute(route string) ([]RequestRecord, error)
RemoveAllRequestRecords() error
}
type RequestRecord ¶
type ResponseIf ¶
type ResponseIf struct {
Response EndpointConfigResponse `json:"response"`
ResponseStatusCode int `json:"response_status_code"`
Condition *Condition `json:"condition"`
Headers map[string]string `json:"response_headers"`
}
Click to show internal directories.
Click to hide internal directories.