Skip to content

Commit

Permalink
update mod name
Browse files Browse the repository at this point in the history
  • Loading branch information
rushuinet committed Sep 11, 2020
1 parent 6cf9b46 commit d9a4fde
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 13 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# xxl-job go-client
很多公司java与go开发共存,java中有xxl-job做为任务调度引擎,为此也出现了go客户端,使用起来比较简单:
# xxl-job-executor-go
很多公司java与go开发共存,java中有xxl-job做为任务调度引擎,为此也出现了go执行器(客户端),使用起来比较简单:
# 支持
```
1.执行器注册
Expand All @@ -18,8 +18,8 @@
package main
import (
xxl "github.com/xxl-job/go-client"
"github.com/xxl-job/go-client/example/task"
xxl "github.com/xxl-job/xxl-job-executor-go"
"github.com/xxl-job/xxl-job-executor-go/example/task"
"log"
)
Expand All @@ -39,4 +39,4 @@ func main() {
}
```
# see
github.com/xxl-job/go-client/example/
github.com/xxl-job/xxl-job-executor-go/example/
4 changes: 2 additions & 2 deletions example/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
xxl "github.com/xxl-job/go-client"
"github.com/xxl-job/go-client/example/task"
xxl "github.com/xxl-job/xxl-job-executor-go"
"github.com/xxl-job/xxl-job-executor-go/example/task"
"log"
)

Expand Down
3 changes: 2 additions & 1 deletion example/task/panic.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package task

import (
"context"
xxl "github.com/xxl-job/go-client"
xxl "github.com/xxl-job/xxl-job-executor-go"
)

func Panic(cxt context.Context, param *xxl.RunReq) (msg string) {
panic("test panic")
return
}
4 changes: 2 additions & 2 deletions example/task/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package task
import (
"context"
"fmt"
xxl "github.com/xxl-job/go-client"
xxl "github.com/xxl-job/xxl-job-executor-go"
)

func Test(cxt context.Context, param *xxl.RunReq) (msg string) {
fmt.Println("test one task" + param.ExecutorHandler + " param:" + param.ExecutorParams + "log_id" + xxl.Int64ToStr(param.LogID))
fmt.Println("test one task" + param.ExecutorHandler + " param:" + param.ExecutorParams + " log_id:" + xxl.Int64ToStr(param.LogID))
return "test done"
}
2 changes: 1 addition & 1 deletion example/task/test2.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package task
import (
"context"
"fmt"
xxl "github.com/xxl-job/go-client"
xxl "github.com/xxl-job/xxl-job-executor-go"
"time"
)

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/xxl-job/go-client
module github.com/xxl-job/xxl-job-executor-go

go 1.14

Expand Down
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ func returnGeneral() []byte {
}
str, _ := json.Marshal(data)
return str
}
}

0 comments on commit d9a4fde

Please sign in to comment.