domain

package
v0.0.0-...-ecf0f91 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliArgs

type CliArgs struct {
	cli.Helper
	Verificaion bool   `cli:"verification" usage:"set if the server is being used in pact verification"`
	PactDir     string `cli:"*pact-dir" usage:"directory to store pact: --pact-dir <directory>"`
	LogDir      string `cli:"log-dir" usage:"directory to store process log: --log-dir <directory>"`
	Port        int    `cli:"*port" usage:"port on which to run the server: --port <port>"`
	Host        string `cli:"host" usage:"host name on which to run the server: --pact-dir <directory>" dft:"localhost"`
	// TODO: Should make this "OutputUrl", as it's not the ruby core when doing verification.
	RubyCoreUrl string `cli:"*ruby-core-url" usage:"URL where the Ruby core is running --ruby-core-url <url>"`
}

type InteractionLookup

type InteractionLookup struct {
	// contains filtered or unexported fields
}

In general, there can be multiple interactions per endpoint, whose serialization can differ - in the longer term this will have to be a map[UniqueInteractionIdentifier] -> []*ProviderServiceInteraction.

func CreateEmptyInteractionLookup

func CreateEmptyInteractionLookup() *InteractionLookup

func CreateInteractionLookupFromContract

func CreateInteractionLookupFromContract(contract *serialization.PactContract) *InteractionLookup

func (*InteractionLookup) Get

func (*InteractionLookup) Set

type UniqueInteractionIdentifier

type UniqueInteractionIdentifier struct {
	// contains filtered or unexported fields
}

func CreateUniqueInteractionIdentifier

func CreateUniqueInteractionIdentifier(method string, path string, query string) UniqueInteractionIdentifier

func CreateUniqueInteractionIdentifierFromInteraction

func CreateUniqueInteractionIdentifierFromInteraction(interaction *serialization.ProviderServiceInteraction) UniqueInteractionIdentifier

Jump to

Keyboard shortcuts

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