Skip to content

Commit 547ed83

Browse files
committed
Rename package to appsync-resolvers
1 parent 691f535 commit 547ed83

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
defaults: &defaults
2-
working_directory: /go/src/github.com/sbstjn/appsync-router
2+
working_directory: /go/src/github.com/sbstjn/appsync-resolvers
33
docker:
44
- image: jimdo/golang-dep
55

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
# AppSync Resolvers
22

3-
[![GitHub release](https://img.shields.io/github/release/sbstjn/appsync-router.svg?maxAge=600)](https://github.com/sbstjn/appsync-router/releases)
4-
[![MIT License](https://img.shields.io/github/license/sbstjn/appsync-router.svg?maxAge=3600)](https://github.com/sbstjn/appsync-router/blob/master/LICENSE.md)
5-
[![GoDoc](https://godoc.org/github.com/sbstjn/appsync-router?status.svg)](https://godoc.org/github.com/sbstjn/appsync-router)
6-
[![Go Report Card](https://goreportcard.com/badge/github.com/sbstjn/appsync-router)](https://goreportcard.com/report/github.com/sbstjn/appsync-router)
7-
[![Build Status](https://img.shields.io/circleci/project/sbstjn/appsync-router.svg?maxAge=600)](https://circleci.com/gh/sbstjn/appsync-router)
8-
[![Test Coverage](https://api.codeclimate.com/v1/badges/ae56f89b122d14b9749e/test_coverage)](https://codeclimate.com/github/sbstjn/appsync-router/test_coverage)
3+
[![GitHub release](https://img.shields.io/github/release/sbstjn/appsync-resolvers.svg?maxAge=600)](https://github.com/sbstjn/appsync-resolvers/releases)
4+
[![MIT License](https://img.shields.io/github/license/sbstjn/appsync-resolvers.svg?maxAge=3600)](https://github.com/sbstjn/appsync-resolvers/blob/master/LICENSE.md)
5+
[![GoDoc](https://godoc.org/github.com/sbstjn/appsync-resolvers?status.svg)](https://godoc.org/github.com/sbstjn/appsync-resolvers)
6+
[![Go Report Card](https://goreportcard.com/badge/github.com/sbstjn/appsync-resolvers)](https://goreportcard.com/report/github.com/sbstjn/appsync-resolvers)
7+
[![Build Status](https://img.shields.io/circleci/project/sbstjn/appsync-resolvers.svg?maxAge=600)](https://circleci.com/gh/sbstjn/appsync-resolvers)
8+
[![Test Coverage](https://api.codeclimate.com/v1/badges/ae56f89b122d14b9749e/test_coverage)](https://codeclimate.com/github/sbstjn/appsync-resolvers/test_coverage)
99

10-
> Wrapper for handling AWS AppSync resolvers with AWS Lambda in Go. See [appsync-router-example] for an example project and how to set up a complete GraphQL API using the [Serverless Application Model].
10+
> Wrapper for handling AWS AppSync resolvers with AWS Lambda in Go. See [appsync-resolvers-example] for an example project and how to set up a complete GraphQL API using the [Serverless Application Model].
1111
1212
## Usage
1313

1414
### Installation
1515

1616
```
17-
$ > go get github.com/sbstjn/appsync-router
17+
$ > go get github.com/sbstjn/appsync-resolvers
1818
```
1919

2020
### Routing
2121

2222
```go
2323
import (
24-
"github.com/sbstjn/appsync-router"
24+
"github.com/sbstjn/appsync-resolvers"
2525
)
2626

2727
func resolverA() (interface{}, error) {
@@ -35,7 +35,7 @@ func resolverB(args struct {
3535
}
3636

3737
var (
38-
r = router.New()
38+
r = resolvers.New()
3939
)
4040

4141
func init() {
@@ -84,7 +84,7 @@ Resolver lookup is based on a `field` property in your `RequestMappingTemplate`,
8484
ResponseMappingTemplate: $util.toJson($context.result)
8585
```
8686
87-
See [appsync-router-example] for an example project and how to set up a serverless GraphQL API with AWS AppSync using the [Serverless Application Model].
87+
See [appsync-resolvers-example] for an example project and how to set up a serverless GraphQL API with AWS AppSync using the [Serverless Application Model].
8888
8989
## License
9090
@@ -96,6 +96,6 @@ You are welcome to contribute to this project! 😘
9696
9797
To make sure you have a pleasant experience, please read the [code of conduct](CODE_OF_CONDUCT.md). It outlines core values and beliefs and will make working together a happier experience.
9898
99-
[appsync-router-example]: https://github.com/sbstjn/appsync-router-example
99+
[appsync-resolvers-example]: https://github.com/sbstjn/appsync-resolvers-example
100100
[Serverless Application Model]: https://github.com/awslabs/serverless-application-model
101101
[AWS setup]: https://docs.aws.amazon.com/appsync/latest/devguide/tutorial-lambda-resolvers.html

resolver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package router
1+
package resolvers
22

33
import (
44
"encoding/json"

resolver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package router
1+
package resolvers
22

33
import (
44
"encoding/json"

router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package router
1+
package resolvers
22

33
import (
44
"encoding/json"

router_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package router
1+
package resolvers
22

33
import (
44
"encoding/json"

validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package router
1+
package resolvers
22

33
import (
44
"errors"

validate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package router
1+
package resolvers
22

33
import (
44
"errors"

0 commit comments

Comments
 (0)