create

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package create ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallTimes

type CallTimes struct {
	RemainingTimes int  `json:"remainingTimes"`
	Unlimited      bool `json:"unlimited"`
}

CallTimes configures the call times for an expectation.

type Expectation

type Expectation struct {
	Request  Request   `json:"httpRequest"`
	Response Response  `json:"httpResponse"`
	Times    CallTimes `json:"times"`
}

Expectation represents an expectation in mockserver.

type Request

type Request struct {
	Method string      `json:"method"`
	Path   string      `json:"path"`
	Body   interface{} `json:"body,omitempty"`
}

Request is the request that an expectation matches against.

type Response

type Response struct {
	Status int         `json:"statusCode"`
	Body   interface{} `json:"body,omitempty"`
}

Response is an untyped response from mockserver expectation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL