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

Source Files