change gomod

Browse Source
main
git 2024-06-01 11:35:00 +08:00
parent b61a719a75
commit e2e29db2d1
Signed by: git
GPG Key ID: 3F65EFFA44207ADD
4 changed files with 8 additions and 7 deletions

View File

@ -17,7 +17,7 @@ you can combine whatever you want
Install the library:
```
go get github.com/ifooth/machinery-plugins@latest
go get git.ifooth.com/common/machinery-plugins@latest
```
Import the library in your code and use it to create tasks:
@ -28,7 +28,7 @@ import (
"github.com/RichardKnop/machinery/v2"
redisbackend "github.com/RichardKnop/machinery/v2/backends/redis"
eagerlock "github.com/RichardKnop/machinery/v2/locks/eager"
etcdbroker "github.com/ifooth/machinery-plugins/brokers/etcd"
etcdbroker "git.ifooth.com/common/machinery-plugins/brokers/etcd"
)
func main() {

View File

@ -1,3 +1,4 @@
// Package etcd implement machinery v2 backend iface
package etcd
import (

View File

@ -17,10 +17,10 @@ import (
opentracinglog "github.com/opentracing/opentracing-go/log"
"github.com/urfave/cli"
etcdbackend "github.com/ifooth/machinery-plugins/backends/etcd"
etcdbroker "github.com/ifooth/machinery-plugins/brokers/etcd"
exampletasks "github.com/ifooth/machinery-plugins/examples/tasks"
etcdlock "github.com/ifooth/machinery-plugins/locks/etcd"
etcdbackend "git.ifooth.com/common/machinery-plugins/backends/etcd"
etcdbroker "git.ifooth.com/common/machinery-plugins/brokers/etcd"
exampletasks "git.ifooth.com/common/machinery-plugins/examples/tasks"
etcdlock "git.ifooth.com/common/machinery-plugins/locks/etcd"
)
var (

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/ifooth/machinery-plugins
module git.ifooth.com/common/machinery-plugins
go 1.20