-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add all in one interface back into consumer package for simpler…
… migrations
- Loading branch information
Showing
7 changed files
with
194 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package consumer | ||
|
||
import "github.com/pact-foundation/pact-go/v2/matchers" | ||
|
||
// Request is the default implementation of the Request interface. | ||
type Request struct { | ||
Method string `json:"method"` | ||
Path matchers.Matcher `json:"path"` | ||
Query matchers.MapMatcher `json:"query,omitempty"` | ||
Headers matchers.MapMatcher `json:"headers,omitempty"` | ||
Body interface{} `json:"body,omitempty"` | ||
} | ||
type Method string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package consumer | ||
|
||
import "github.com/pact-foundation/pact-go/v2/matchers" | ||
|
||
// Response is the default implementation of the Response interface. | ||
type Response struct { | ||
Status int `json:"status"` | ||
Headers matchers.MapMatcher `json:"headers,omitempty"` | ||
Body interface{} `json:"body,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters