-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9569c57
commit de06d26
Showing
9 changed files
with
364 additions
and
27 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 |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
MOCKGENERATE := go run github.com/golang/mock/mockgen@v1.7.0-rc.1 | ||
MOCKGENERATE := go run go.uber.org/mock/mockgen@v0.4.0 | ||
GINKGO := go run github.com/onsi/ginkgo/[email protected] | ||
|
||
build: | ||
|
@@ -46,7 +46,7 @@ run: | |
@go run main.go | ||
|
||
gcm: | ||
@go run main.go gcm --senderId=test --apiKey=123 | ||
@go run main.go gcm | ||
|
||
apns: | ||
@go run main.go apns --certificate=./tls/_fixtures/certificate-valid.pem | ||
|
@@ -171,6 +171,6 @@ integration-test-container-dev: build-image-dev start-deps-container-dev test-db | |
pusher:local make run-integration-test | ||
@$(MAKE) stop-deps | ||
|
||
# .PHONY: mocks | ||
# mocks: | ||
# $(MOCKGENERATE) -package=mocks -source=interfaces/apns.go -destination=mocks/apns.go | ||
.PHONY: mocks | ||
mocks: | ||
$(MOCKGENERATE) -source=interfaces/client.go -destination=mocks/firebase/client.go |
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,9 @@ | ||
package handler | ||
|
||
// FeedbackResponse struct is sent to feedback reporters | ||
// in order to keep the format expected by it | ||
type FeedbackResponse struct { | ||
From string `json:"from,omitempty"` | ||
Error string `json:"error,omitempty"` | ||
ErrorDescription string `json:"error_description,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
Oops, something went wrong.