message

package
v2.0.0-beta.15 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PACT_MESSAGE_METADATA_HEADER = "PACT_MESSAGE_METADATA"
View Source
var PACT_MESSAGE_METADATA_HEADER2 = "Pact-Message-Metadata"

Functions

This section is empty.

Types

type Body

type Body interface{}

type Handler

type Handler func([]models.ProviderState) (Body, Metadata, error)

Handler is a provider function that generates a message for a Consumer given a Message context (state, description etc.)

type Handlers

type Handlers map[string]Handler

Handlers is a list of handlers ordered by description

type Metadata

type Metadata map[string]interface{}

type Producer

type Producer Handler

type Verifier

type Verifier struct {
	// ClientTimeout specifies how long to wait for Pact CLI to start
	// Can be increased to reduce likelihood of intermittent failure
	// Defaults to 10s
	ClientTimeout time.Duration
}

func (*Verifier) Verify

func (v *Verifier) Verify(t *testing.T, request VerifyMessageRequest) error

type VerifyMessageRequest

type VerifyMessageRequest struct {
	provider.VerifyRequest
	// MessageHandlers contains a mapped list of message handlers for a provider
	// that will be rable to produce the correct message format for a given
	// consumer interaction
	MessageHandlers Handlers
}

VerifyMessageRequest contains the verification params.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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