wiremock

package
v0.0.0-...-db62745 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Count

type Count struct {
	Count int `json:"count"`
}

type Request

type Request struct {
	Body string `json:"body"`
}

type RequestMatcher

type RequestMatcher struct {
	Method string `json:"method"`
	URL    string `json:"url"`
}

type Requests

type Requests struct {
	Requests []Request `json:"requests"`
}

type Response

type Response struct {
	Status int `json:"status"`
}

type Stub

type Stub struct {
	Request  RequestMatcher `json:"request"`
	Response Response       `json:"response"`
}

type Wiremock

type Wiremock struct {
	// contains filtered or unexported fields
}

func New

func New(wiremockHost string) *Wiremock

func (*Wiremock) AddStub

func (w *Wiremock) AddStub(stub Stub) error

func (*Wiremock) Address

func (w *Wiremock) Address() string

func (*Wiremock) GetCount

func (w *Wiremock) GetCount(requestMatcher RequestMatcher) (int, error)

func (*Wiremock) GetCountFn

func (w *Wiremock) GetCountFn(requestMatcher RequestMatcher) func() (int, error)

func (*Wiremock) GetRequestBody

func (w *Wiremock) GetRequestBody(requestMatcher RequestMatcher) (string, error)

func (*Wiremock) Reset

func (w *Wiremock) Reset() error

Jump to

Keyboard shortcuts

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