Versions in this module Expand all Collapse all v0 v0.5.2 Dec 4, 2020 v0.5.1 Dec 4, 2020 Changes in this version + func JSONResponse(result *contract.OperationResult, schema *api.Schema, log contract.Logger) bool + func NewRequest(op contract.Operation, log contract.Logger) contract.Request + func NoRequest(err error, log contract.Logger) contract.Request + func Operation(op contract.Operation, enrichment *[]contract.RequestEnrichment, ...) *contract.OperationResult + func Schema(data interface{}, schema *api.Schema, logger contract.Logger) bool + func Success() *contract.OperationResult + func TryJSONBooleanResponse(respData *[]byte, log contract.Logger) (res bool, err error) + func TryJSONNumberResponse(respData *[]byte, log contract.Logger) (res int64, err error) + func TryJSONStringResponse(respData *[]byte, log contract.Logger) (res string, err error) + type JSONArray = []interface + func TryJSONArrayResponse(respData *[]byte, log contract.Logger) (res JSONArray, err error) + type JSONMap = map[string]interface + func TryJSONObjectResponse(respData *[]byte, log contract.Logger) (res JSONMap, err error) + type NullRequest struct + func (req *NullRequest) Enrich(en contract.RequestEnrichment) + func (req *NullRequest) Execute() *contract.OperationResult + type NullValidator struct + func NoValidator(err error, log contract.Logger) *NullValidator + func (v *NullValidator) Expect(ex contract.Expectation) + func (v *NullValidator) Validate(r *contract.OperationResult) *contract.OperationResult + type Request struct + HTTPClient *http.Client + HTTPRequest *http.Request + Result *contract.OperationResult + func (req *Request) Enrich(en contract.RequestEnrichment) + func (req *Request) Execute() *contract.OperationResult + type Validator struct + func NewValidator(log contract.Logger) *Validator + func (v *Validator) Expect(ex contract.Expectation) + func (v *Validator) Validate(r *contract.OperationResult) *contract.OperationResult