subsystem

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WireMockURL = fmt.Sprintf("http://localhost:%s", os.Getenv("WIREMOCK_PORT"))
	RequestsURL = fmt.Sprintf("%s/__admin/requests", WireMockURL)
	MappingsURL = fmt.Sprintf("%s/__admin/mappings", WireMockURL)
)

Functions

This section is empty.

Types

type Mapping

type Mapping struct {
	ID string
}

type ReceivedRequest

type ReceivedRequest struct {
	URL     string
	Method  string
	Body    string
	Headers map[string]string
}

type ReceivedResponse

type ReceivedResponse struct {
	Status  int
	Body    string
	Headers map[string]string
}

type RequestDefinition

type RequestDefinition struct {
	URL          string            `json:"url"`
	Method       string            `json:"method"`
	BodyPatterns []interface{}     `json:"bodyPatterns"`
	Headers      map[string]string `json:"headers"`
}

type RequestOccurence

type RequestOccurence struct {
	ID         string
	Request    *ReceivedRequest
	Response   *ReceivedResponse
	WasMatched bool
}

type Requests

type Requests struct {
	Requests []*RequestOccurence
}

type ResponseDefinition

type ResponseDefinition struct {
	Status  int               `json:"status"`
	Body    string            `json:"body"`
	Headers map[string]string `json:"headers"`
}

type StepVerifier

type StepVerifier interface {
	// contains filtered or unexported methods
}

type StubDefinition

type StubDefinition struct {
	Request  *RequestDefinition  `json:"request"`
	Response *ResponseDefinition `json:"response"`
}

Jump to

Keyboard shortcuts

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