forked from bitcoin-sv/dpp-proxy
-
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.
updated to v007 of p4 (bitcoin-sv#6)
- Loading branch information
1 parent
6e31852
commit 73ff0f1
Showing
30 changed files
with
142 additions
and
140 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
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
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
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 |
---|---|---|
@@ -1,8 +1,3 @@ | ||
package mocks | ||
|
||
//go:generate moq -pkg mocks -out payment_writer.go ../ PaymentWriter | ||
//go:generate moq -pkg mocks -out payment_service.go ../ PaymentService | ||
//go:generate moq -pkg mocks -out payment_request_service.go ../ PaymentRequestService | ||
//go:generate moq -pkg mocks -out merchant_reader.go ../ MerchantReader | ||
//go:generate moq -pkg mocks -out destination_reader.go ../ DestinationReader | ||
//go:generate moq -pkg mocks -out http_client.go ../data HTTPClient |
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 |
---|---|---|
@@ -1,2 +1,17 @@ | ||
// Package server is needed for swagger doc generation. Do not delete. | ||
package server | ||
|
||
import validator "github.com/theflyingcodr/govalidator" | ||
|
||
// ClientError defines an error type that can be returned to handle client errors. | ||
type ClientError struct { | ||
ID string `json:"id" example:"e97970bf-2a88-4bc8-90e6-2f597a80b93d"` | ||
Code string `json:"code" example:"N01"` | ||
Title string `json:"title" example:"not found"` | ||
Message string `json:"message" example:"unable to find foo when loading bar"` | ||
} | ||
|
||
// BadRequestError defines an error type to handle validation errors. | ||
type BadRequestError struct { | ||
Errors validator.ErrValidation `json:"errors" swaggertype:"validator.ErrValidation"` | ||
} |
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
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
Oops, something went wrong.