Skip to content

Commit

Permalink
Merge pull request #17 from ThreeDotsLabs/release
Browse files Browse the repository at this point in the history
v1.0 preparations
  • Loading branch information
roblaszczak authored Oct 15, 2024
2 parents f820b25 + dd3e97a commit c9cd192
Show file tree
Hide file tree
Showing 25 changed files with 2,290 additions and 1,195 deletions.
12 changes: 12 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Development instructions

## Unit Tests

You can run the unit tests by simply running the command: `go test -cover -race ./...`

## Development and Testing

To try the in test mode (using [localstack](https://hub.docker.com/r/localstack/localstack))
- start docker using: `docker-compose up -d`

Now you can run the application: `go run cmd/main.go`
98 changes: 0 additions & 98 deletions cmd/sns-sqs/main.go

This file was deleted.

71 changes: 0 additions & 71 deletions cmd/sqs-sqs/main.go

This file was deleted.

20 changes: 0 additions & 20 deletions connection/endpoint.go

This file was deleted.

18 changes: 14 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
version: '3'
services:
goaws:
image: pafortin/goaws:latest
localstack:
container_name: localstack
image: localstack/localstack:latest
environment:
- SERVICES=sqs,sns
- AWS_DEFAULT_REGION=us-east-1
- EDGE_PORT=4566
ports:
- 4100:4100
- "4566-4597:4566-4597"
healthcheck:
test: awslocal sqs list-queues && awslocal sns list-topics
interval: 5s
timeout: 5s
retries: 5
start_period: 30s
50 changes: 32 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
module github.com/ThreeDotsLabs/watermill-amazonsqs

go 1.12
go 1.21

require (
github.com/ThreeDotsLabs/watermill v1.2.0
github.com/aws/aws-sdk-go-v2 v1.24.1
github.com/aws/aws-sdk-go-v2/config v1.26.6
github.com/aws/aws-sdk-go-v2/credentials v1.16.16
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.11 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.10 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.10 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.7.3 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.4 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.10 // indirect
github.com/aws/aws-sdk-go-v2/service/sns v1.26.7
github.com/aws/aws-sdk-go-v2/service/sqs v1.29.7
github.com/aws/aws-sdk-go-v2/service/sso v1.18.7 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.7 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.26.7 // indirect
github.com/aws/smithy-go v1.19.0
github.com/hashicorp/go-multierror v1.1.1
github.com/stretchr/testify v1.8.1
github.com/aws/aws-sdk-go-v2 v1.30.4
github.com/aws/aws-sdk-go-v2/config v1.27.28
github.com/aws/aws-sdk-go-v2/credentials v1.17.28
github.com/aws/aws-sdk-go-v2/service/sns v1.31.4
github.com/aws/aws-sdk-go-v2/service/sqs v1.34.4
github.com/aws/smithy-go v1.20.4
github.com/stretchr/testify v1.8.4
)

require (
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.12 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.16 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.16 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.4 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.18 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.22.5 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.5 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.30.4 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/lithammer/shortuuid/v3 v3.0.7 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit c9cd192

Please sign in to comment.