Skip to content

Commit

Permalink
chore: rename forked module for internal use
Browse files Browse the repository at this point in the history
  • Loading branch information
RichToms committed Feb 15, 2024
1 parent 71f4df9 commit 9a85c04
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 16 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Make sure you have Go installed [download](https://go.dev/dl/)
Initialize your project by creating a folder and then running `go mod init github.com/your/repo` inside the folder. Then install the library with the [`go get`](https://pkg.go.dev/cmd/go/#hdr-Add_dependencies_to_current_module_and_install_them) command:

```bash
go get -u github.com/francescopepe/formigo
go get -u github.com/Pod-Point/go-queue-worker
```

## Examples
Expand All @@ -37,8 +37,9 @@ import (
"context"
"fmt"
"log"

"github.com/francescopepe/formigo"

"github.com/Pod-Point/go-queue-worker"
workerSqs "github.com/Pod-Point/go-queue-worker/clients/sqs"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
Expand Down Expand Up @@ -107,7 +108,8 @@ import (
"fmt"
"log"

"github.com/francescopepe/formigo"
"github.com/Pod-Point/go-queue-worker"
workerSqs "github.com/Pod-Point/go-queue-worker/clients/sqs"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"time"

"github.com/francescopepe/formigo/internal/client"
"github.com/Pod-Point/go-queue-worker/internal/client"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion consumers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"
"time"

"github.com/francescopepe/formigo/internal/messages"
"github.com/Pod-Point/go-queue-worker/internal/messages"
)

type singleMessageHandler = func(ctx context.Context, msg interface{}) error
Expand Down
4 changes: 2 additions & 2 deletions deleter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"sync"

"github.com/francescopepe/formigo/internal/client"
"github.com/francescopepe/formigo/internal/messages"
"github.com/Pod-Point/go-queue-worker/internal/client"
"github.com/Pod-Point/go-queue-worker/internal/messages"
)

// deleter will delete messages from SQS until the delete channel gets closed.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/francescopepe/formigo
module github.com/Pod-Point/go-queue-worker

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion internal/client/client.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package client

import "github.com/francescopepe/formigo/internal/messages"
import "github.com/Pod-Point/go-queue-worker/internal/messages"

type MessageReceiver interface {
ReceiveMessages() ([]messages.Message, error)
Expand Down
4 changes: 2 additions & 2 deletions retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"errors"
"fmt"

"github.com/francescopepe/formigo/internal/client"
"github.com/francescopepe/formigo/internal/messages"
"github.com/Pod-Point/go-queue-worker/internal/client"
"github.com/Pod-Point/go-queue-worker/internal/messages"
)

// retriever will get messages from SQS until the given context gets canceled.
Expand Down
4 changes: 2 additions & 2 deletions sqs.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
awsSqs "github.com/aws/aws-sdk-go-v2/service/sqs"
"github.com/aws/aws-sdk-go-v2/service/sqs/types"

"github.com/francescopepe/formigo/internal/client"
"github.com/francescopepe/formigo/internal/messages"
"github.com/Pod-Point/go-queue-worker/internal/client"
"github.com/Pod-Point/go-queue-worker/internal/messages"
)

type SqsClientConfiguration struct {
Expand Down
4 changes: 2 additions & 2 deletions worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"errors"
"sync"

"github.com/francescopepe/formigo/internal/client"
"github.com/francescopepe/formigo/internal/messages"
"github.com/Pod-Point/go-queue-worker/internal/client"
"github.com/Pod-Point/go-queue-worker/internal/messages"
)

type worker struct {
Expand Down

0 comments on commit 9a85c04

Please sign in to comment.