Back to godoc.org

Package wiremock

v0.0.0-...-508f92b
Latest Go to latest

The latest major version is .

Published: today | License: Apache-2.0 | Module: code.cloudfoundry.org/eirini

Index

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 {
	URL string
}

func New

func New(url string) *Wiremock

func (*Wiremock) AddStub

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

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier