├── .gitignore ├── Makefile ├── README.md ├── api ├── handler │ ├── handler.go │ ├── helpers.go │ └── model.go └── middleware │ └── middleware.go ├── cloudformation └── apigateway │ ├── apig.yaml │ └── create_apigateway.sh ├── entity ├── entity.go ├── errors.go └── validations.go ├── go.mod ├── go.sum ├── lambdas ├── authorizer │ ├── deploy.sh │ ├── main.go │ └── template.yaml └── users │ ├── deploy.sh │ ├── env.json │ ├── main.go │ └── template.yaml ├── openapi.yaml ├── pkg └── jwtparser │ ├── jwtparser.go │ └── jwtparser_test.go ├── repository ├── dynamodb │ └── dynmodb.go ├── mockdatabase │ └── mockdatabase.go └── mysql │ ├── init.sql │ ├── model.go │ └── mysql.go └── usecase └── users ├── repository.go ├── service.go ├── usecase.go ├── users.go └── users_test.go /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/.gitignore -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/README.md -------------------------------------------------------------------------------- /api/handler/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/api/handler/handler.go -------------------------------------------------------------------------------- /api/handler/helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/api/handler/helpers.go -------------------------------------------------------------------------------- /api/handler/model.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/api/handler/model.go -------------------------------------------------------------------------------- /api/middleware/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/api/middleware/middleware.go -------------------------------------------------------------------------------- /cloudformation/apigateway/apig.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/cloudformation/apigateway/apig.yaml -------------------------------------------------------------------------------- /cloudformation/apigateway/create_apigateway.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/cloudformation/apigateway/create_apigateway.sh -------------------------------------------------------------------------------- /entity/entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/entity/entity.go -------------------------------------------------------------------------------- /entity/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/entity/errors.go -------------------------------------------------------------------------------- /entity/validations.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/entity/validations.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/go.sum -------------------------------------------------------------------------------- /lambdas/authorizer/deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/lambdas/authorizer/deploy.sh -------------------------------------------------------------------------------- /lambdas/authorizer/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/lambdas/authorizer/main.go -------------------------------------------------------------------------------- /lambdas/authorizer/template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/lambdas/authorizer/template.yaml -------------------------------------------------------------------------------- /lambdas/users/deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/lambdas/users/deploy.sh -------------------------------------------------------------------------------- /lambdas/users/env.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/lambdas/users/env.json -------------------------------------------------------------------------------- /lambdas/users/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/lambdas/users/main.go -------------------------------------------------------------------------------- /lambdas/users/template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/lambdas/users/template.yaml -------------------------------------------------------------------------------- /openapi.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/openapi.yaml -------------------------------------------------------------------------------- /pkg/jwtparser/jwtparser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/pkg/jwtparser/jwtparser.go -------------------------------------------------------------------------------- /pkg/jwtparser/jwtparser_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/pkg/jwtparser/jwtparser_test.go -------------------------------------------------------------------------------- /repository/dynamodb/dynmodb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/repository/dynamodb/dynmodb.go -------------------------------------------------------------------------------- /repository/mockdatabase/mockdatabase.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/repository/mockdatabase/mockdatabase.go -------------------------------------------------------------------------------- /repository/mysql/init.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/repository/mysql/init.sql -------------------------------------------------------------------------------- /repository/mysql/model.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/repository/mysql/model.go -------------------------------------------------------------------------------- /repository/mysql/mysql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/repository/mysql/mysql.go -------------------------------------------------------------------------------- /usecase/users/repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/usecase/users/repository.go -------------------------------------------------------------------------------- /usecase/users/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/usecase/users/service.go -------------------------------------------------------------------------------- /usecase/users/usecase.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/usecase/users/usecase.go -------------------------------------------------------------------------------- /usecase/users/users.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/usecase/users/users.go -------------------------------------------------------------------------------- /usecase/users/users_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshefsharvit/aws-golang-lambda/HEAD/usecase/users/users_test.go --------------------------------------------------------------------------------