Documentation
¶
Index ¶
- Variables
- func ParseAssertRequest(req *http.Request) (*AssertConfig, error)
- func Validate(mockFs types.MockFs, jsonValidate JsonValidate, assertConfig *AssertConfig) (*[]ValidationError, error)
- type EndpointConfigError
- type EndpointConfigErrorCode
- type JsonValidate
- type Kv
- type ReadFileFunc
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrResponseFileDoesNotExist = errors.New("ErrResponseFileDoesNotExist")
Functions ¶
func ParseAssertRequest ¶
Types ¶
type EndpointConfigError ¶
type EndpointConfigError struct {
Code EndpointConfigErrorCode
EndpointIndex int
Metadata map[string]string
}
func ValidateEndpointConfigs ¶
func ValidateEndpointConfigs(endpointConfigs []types.EndpointConfig) ([]EndpointConfigError, error)
type EndpointConfigErrorCode ¶
type EndpointConfigErrorCode int
const ( EndpointConfigErrorCode_Unknown EndpointConfigErrorCode = iota EndpointConfigErrorCode_EndpointDuplicate EndpointConfigErrorCode_InvalidMethod EndpointConfigErrorCode_RouteWithQuerystring )
type JsonValidate ¶
type ReadFileFunc ¶
type Response ¶
type Response struct {
Body []byte
EndpointContentType types.Endpoint_content_type
StatusCode int
Headers map[string]string
}
func ResolveEndpointResponse ¶
Click to show internal directories.
Click to hide internal directories.