message

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 7 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

func CreateMessageHandler

func CreateMessageHandler(messageHandlers Handlers) proxy.Middleware

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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