Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewListener ¶
func NewListener(consumer, provider string) recorder.Listener
Types ¶
type FileSystem ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func (*Generator) ProcessInteraction ¶
type IDGenerator ¶
type IDGenerator interface {
Generate() string
}
type Interaction ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func (Listener) GetPactLocation ¶
func (Listener) RequestReceived ¶
func (listener Listener) RequestReceived(request recorder.Request, response recorder.Response)
type LocalFileSystem ¶
type LocalFileSystem struct{}
func (*LocalFileSystem) CreatePath ¶
func (fileSystem *LocalFileSystem) CreatePath(path string) error
func (*LocalFileSystem) OpenWriteStream ¶
func (fileSystem *LocalFileSystem) OpenWriteStream(fileName string) (io.WriteCloser, error)
func (*LocalFileSystem) PathExists ¶
func (fileSystem *LocalFileSystem) PathExists(path string) (bool, error)
type Option ¶
type Option func(config *config)
func WithFileSystem ¶
func WithFileSystem(fileSystem FileSystem) Option
func WithIDGenerator ¶
func WithIDGenerator(idGenerator IDGenerator) Option
type Pact ¶
type Pact struct { Consumer Participant `json:"consumer"` Provider Participant `json:"provider"` Interactions []Interaction `json:"interactions"` }
func (*Pact) AddInteraction ¶
func (pact *Pact) AddInteraction(interaction Interaction)
type Participant ¶ added in v0.0.5
type Participant struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.