forked from pact-foundation/pact-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(states): add types for provider state testing
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package types | ||
|
||
// ProviderState Models a provider state coming over the Wire. | ||
// This is generally provided as a request to an HTTP endpoint (e.g. PUT /state) | ||
// to configure a state on a Provider. | ||
type ProviderState struct { | ||
Consumer string `json:"consumer"` | ||
State string `json:"state"` | ||
} | ||
|
||
// ProviderStates is mapping of consumers to all known states. This is usually | ||
// a response from an HTTP endpoint (e.g. GET /states) to find all states a | ||
// provider has. | ||
type ProviderStates map[string][]string |