Versions in this module Expand all Collapse all v0 v0.0.10 Oct 7, 2017 Changes in this version type Pact + AllowedMockServerPorts string v0.0.9 Sep 30, 2017 v0.0.8 Jul 31, 2017 v0.0.7 May 20, 2017 v0.0.6 May 12, 2017 Changes in this version type MockService + PactFileWriteMode string type Pact + PactFileWriteMode string v0.0.5 May 10, 2017 v0.0.4 May 2, 2017 v0.0.3 Apr 30, 2017 Changes in this version type Pact + Host string + Network string type PactClient + Address string + Network string v0.0.3-windows Feb 20, 2017 v0.0.2 Jul 1, 2016 Changes in this version + var ErrNoConsumers = errors.New("no consumers found") + var ErrUnauthorized = errors.New("unauthorized") + type HalDoc struct + Links HalLinks + type HalLinks struct + Pacts []PactLink + type MockService struct + BaseURL string + Consumer string + Provider string + func (m *MockService) AddInteraction(interaction *Interaction) error + func (m *MockService) DeleteInteractions() error + func (m *MockService) Verify() error + func (m *MockService) WritePact() error type Pact + LogDir string + PactDir string + SpecificationVersion int + func (p *Pact) WritePact() error + type PactFile struct + Consumer PactName + Provider PactName + type PactLink struct + Href string + Name string + Title string + type PactName struct + Name string + type Publisher struct + func (p *Publisher) Publish(request *types.PublishRequest) error v0.0.2-beta Jun 15, 2016 v0.0.1 Jun 6, 2016 Changes in this version + func EachLike(content interface{}, minRequired int) string + func Like(content interface{}) string + func Term(generate string, matcher string) string + type Client interface + StartServer func() *types.PactMockServer + type Interaction struct + Description string + Request *Request + Response *Response + State string + func (p *Interaction) Given(state string) *Interaction + func (p *Interaction) UponReceiving(description string) *Interaction + func (p *Interaction) WillRespondWith(response *Response) *Interaction + func (p *Interaction) WithRequest(request *Request) *Interaction + type Pact struct + Consumer string + Interactions []*Interaction + LogLevel string + Port int + Provider string + Server *types.PactMockServer + func (p *Pact) AddInteraction() *Interaction + func (p *Pact) Setup() *Pact + func (p *Pact) Teardown() *Pact + func (p *Pact) Verify(integrationTest func() error) error + func (p *Pact) VerifyProvider(request *types.VerifyRequest) *types.CommandResponse + type PactClient struct + Port int + func (p *PactClient) ListServers() *types.PactListResponse + func (p *PactClient) StartServer() *types.PactMockServer + func (p *PactClient) StopDaemon() error + func (p *PactClient) StopServer(server *types.PactMockServer) *types.PactMockServer + func (p *PactClient) VerifyProvider(request *types.VerifyRequest) *types.CommandResponse + type PactMockService struct + BaseURL string + Consumer string + Provider string + func (m *PactMockService) AddInteraction(interaction *Interaction) error + func (m *PactMockService) DeleteInteractions() error + func (m *PactMockService) Verify() error + func (m *PactMockService) WritePact() error + type Request struct + Body interface{} + Headers map[string]string + Method string + Path string + Query string + type Response struct + Body interface{} + Headers map[string]string + Status int