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 (il *InteractionLookup) Get(identifier UniqueInteractionIdentifier) (serialization.ProviderServiceInteraction, bool)
func (*InteractionLookup) Set ¶
func (il *InteractionLookup) Set(identifier UniqueInteractionIdentifier, interaction serialization.ProviderServiceInteraction) error
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
Click to show internal directories.
Click to hide internal directories.