match

package
v0.0.0-...-1142866 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BytesMatcher

type BytesMatcher struct{}

func (BytesMatcher) Match

func (BytesMatcher) Match(pid, cid, format string, data, contract []byte) error

type JSONMatcher

type JSONMatcher struct{}

JSONMatcher represents a match.Matcher implementation for JSON contracts

func (JSONMatcher) Match

func (JSONMatcher) Match(pid, cid, format string, data, contract []byte) error

Match checks if a JSON object (producer) is valid for a specific JSON Schema (consumer contract)

type Matcher

type Matcher interface {
	Match(pid, cid, format string, data, contract []byte) error
}

Matcher represents consumer-driven contract matchers.

type RegexMatcher

type RegexMatcher struct{}

RegexMatcher represents a match.Matcher implementation for Regex contracts

func (RegexMatcher) Match

func (RegexMatcher) Match(pid, cid, format string, data, contract []byte) error

type StringMatcher

type StringMatcher struct{}

StringMatcher represents a match.Matcher implementation for string reciprocity

func (StringMatcher) Match

func (StringMatcher) Match(pid, cid, format string, data, contract []byte) error

Match checks if the producer string is equal to the consumer string

Jump to

Keyboard shortcuts

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