Documentation
¶
Index ¶
- func NewClient(fs afero.Fs, opener configOpener, host string, port uint, ...) *wiremock
- func NewDefaultClient(fs afero.Fs, opener configOpener) *wiremock
- type Accept
- type Headers
- type Metadata
- type Mock
- func (m *Mock) WithDescription(description string) *Mock
- func (m *Mock) WithName(name string) *Mock
- func (m *Mock) WithRequestMethod(method string) *Mock
- func (m *Mock) WithRequestUrlPath(urlPath string) *Mock
- func (m *Mock) WithResponseBody(body string) *Mock
- func (m *Mock) WithResponseStatusCode(statusCode int) *Mock
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultClient ¶
Types ¶
type Mock ¶ added in v1.0.1
type Mock struct {
Name string `json:"name"`
Request Request `json:"request"`
Response Response `json:"response"`
Metadata Metadata `json:"metadata"`
}
func DefaultMock ¶ added in v1.0.1
func DefaultMock() Mock
func (*Mock) WithDescription ¶ added in v1.0.1
func (*Mock) WithRequestMethod ¶ added in v1.0.1
func (*Mock) WithRequestUrlPath ¶ added in v1.0.1
func (*Mock) WithResponseBody ¶ added in v1.0.1
func (*Mock) WithResponseStatusCode ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.