From 7ccdfcaf10c5d34521c70b199fffda4920b1d533 Mon Sep 17 00:00:00 2001 From: miraclesu Date: Tue, 9 May 2017 18:27:32 +0800 Subject: [PATCH] =?UTF-8?q?pkg:=20=E8=BF=81=E7=A7=BB=E5=8C=85=E5=90=8D?= =?UTF-8?q?=E5=88=B0=20github?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/node/server.go | 6 +++--- bin/web/server.go | 6 +++--- models/client.go | 2 +- models/common.go | 2 +- models/group.go | 2 +- models/job.go | 4 ++-- models/node.go | 2 +- models/noticer.go | 2 +- models/once.go | 2 +- models/proc.go | 2 +- node/group.go | 2 +- node/job.go | 2 +- node/node.go | 6 +++--- web/configuration.go | 2 +- web/info.go | 4 ++-- web/job.go | 4 ++-- web/job_log.go | 2 +- web/node.go | 4 ++-- web/routers.go | 4 ++-- 19 files changed, 30 insertions(+), 30 deletions(-) diff --git a/bin/node/server.go b/bin/node/server.go index a89a33d..e1ae7ef 100644 --- a/bin/node/server.go +++ b/bin/node/server.go @@ -9,9 +9,9 @@ import ( "sunteng/commons/event" "sunteng/commons/log" - "sunteng/cronsun/conf" - "sunteng/cronsun/models" - "sunteng/cronsun/node" + "github.com/shunfei/cronsun/conf" + "github.com/shunfei/cronsun/models" + "github.com/shunfei/cronsun/node" ) var ( diff --git a/bin/web/server.go b/bin/web/server.go index 1e197a2..c023578 100644 --- a/bin/web/server.go +++ b/bin/web/server.go @@ -8,9 +8,9 @@ import ( "sunteng/commons/event" "sunteng/commons/log" - "sunteng/cronsun/conf" - "sunteng/cronsun/models" - "sunteng/cronsun/web" + "github.com/shunfei/cronsun/conf" + "github.com/shunfei/cronsun/models" + "github.com/shunfei/cronsun/web" ) func main() { diff --git a/models/client.go b/models/client.go index b723307..cd0b8f6 100644 --- a/models/client.go +++ b/models/client.go @@ -8,7 +8,7 @@ import ( client "github.com/coreos/etcd/clientv3" - "sunteng/cronsun/conf" + "github.com/shunfei/cronsun/conf" ) var ( diff --git a/models/common.go b/models/common.go index b5babce..84759a5 100644 --- a/models/common.go +++ b/models/common.go @@ -2,7 +2,7 @@ package models import ( "sunteng/commons/db/imgo" - "sunteng/cronsun/conf" + "github.com/shunfei/cronsun/conf" ) var ( diff --git a/models/group.go b/models/group.go index 7595fed..88c4818 100644 --- a/models/group.go +++ b/models/group.go @@ -9,7 +9,7 @@ import ( "github.com/coreos/etcd/mvcc/mvccpb" "sunteng/commons/log" - "sunteng/cronsun/conf" + "github.com/shunfei/cronsun/conf" ) // 结点类型分组 diff --git a/models/job.go b/models/job.go index 0490f25..b513f9d 100644 --- a/models/job.go +++ b/models/job.go @@ -19,8 +19,8 @@ import ( "github.com/coreos/etcd/mvcc/mvccpb" "sunteng/commons/log" - "sunteng/cronsun/conf" - "sunteng/cronsun/node/cron" + "github.com/shunfei/cronsun/conf" + "github.com/shunfei/cronsun/node/cron" ) const ( diff --git a/models/node.go b/models/node.go index 40263ce..b192dda 100644 --- a/models/node.go +++ b/models/node.go @@ -13,7 +13,7 @@ import ( "gopkg.in/mgo.v2/bson" "sunteng/commons/log" - "sunteng/cronsun/conf" + "github.com/shunfei/cronsun/conf" ) const ( diff --git a/models/noticer.go b/models/noticer.go index cc15068..17f3afa 100644 --- a/models/noticer.go +++ b/models/noticer.go @@ -12,7 +12,7 @@ import ( "github.com/go-gomail/gomail" "sunteng/commons/log" - "sunteng/cronsun/conf" + "github.com/shunfei/cronsun/conf" ) type Noticer interface { diff --git a/models/once.go b/models/once.go index abb6d77..fc95d62 100644 --- a/models/once.go +++ b/models/once.go @@ -3,7 +3,7 @@ package models import ( client "github.com/coreos/etcd/clientv3" - "sunteng/cronsun/conf" + "github.com/shunfei/cronsun/conf" ) // 马上执行 job 任务 diff --git a/models/proc.go b/models/proc.go index 0711019..831c329 100644 --- a/models/proc.go +++ b/models/proc.go @@ -10,7 +10,7 @@ import ( "strings" "sunteng/commons/log" - "sunteng/cronsun/conf" + "github.com/shunfei/cronsun/conf" ) var ( diff --git a/node/group.go b/node/group.go index cf0b1f9..0b4162a 100644 --- a/node/group.go +++ b/node/group.go @@ -1,7 +1,7 @@ package node import ( - "sunteng/cronsun/models" + "github.com/shunfei/cronsun/models" ) type Groups map[string]*models.Group diff --git a/node/job.go b/node/job.go index 532c501..894be27 100644 --- a/node/job.go +++ b/node/job.go @@ -1,7 +1,7 @@ package node import ( - "sunteng/cronsun/models" + "github.com/shunfei/cronsun/models" ) type Jobs map[string]*models.Job diff --git a/node/node.go b/node/node.go index 5c65b17..5a8e6e9 100644 --- a/node/node.go +++ b/node/node.go @@ -10,9 +10,9 @@ import ( "sunteng/commons/log" "sunteng/commons/util" - "sunteng/cronsun/conf" - "sunteng/cronsun/models" - "sunteng/cronsun/node/cron" + "github.com/shunfei/cronsun/conf" + "github.com/shunfei/cronsun/models" + "github.com/shunfei/cronsun/node/cron" ) // Node 执行 cron 命令服务的结构体 diff --git a/web/configuration.go b/web/configuration.go index a1423ac..cb83abe 100644 --- a/web/configuration.go +++ b/web/configuration.go @@ -3,7 +3,7 @@ package web import ( "net/http" - "sunteng/cronsun/conf" + "github.com/shunfei/cronsun/conf" ) type Configuration struct{} diff --git a/web/info.go b/web/info.go index 5ee12ce..a601f1c 100644 --- a/web/info.go +++ b/web/info.go @@ -6,8 +6,8 @@ import ( v3 "github.com/coreos/etcd/clientv3" - "sunteng/cronsun/conf" - "sunteng/cronsun/models" + "github.com/shunfei/cronsun/conf" + "github.com/shunfei/cronsun/models" ) type Info struct{} diff --git a/web/job.go b/web/job.go index 93308ae..61978b1 100644 --- a/web/job.go +++ b/web/job.go @@ -10,8 +10,8 @@ import ( "github.com/gorilla/mux" "sunteng/commons/log" - "sunteng/cronsun/conf" - "sunteng/cronsun/models" + "github.com/shunfei/cronsun/conf" + "github.com/shunfei/cronsun/models" "time" ) diff --git a/web/job_log.go b/web/job_log.go index e57284b..b2303bb 100644 --- a/web/job_log.go +++ b/web/job_log.go @@ -10,7 +10,7 @@ import ( "gopkg.in/mgo.v2/bson" "math" - "sunteng/cronsun/models" + "github.com/shunfei/cronsun/models" ) type JobLog struct{} diff --git a/web/node.go b/web/node.go index 1d32cc7..33a9a5b 100644 --- a/web/node.go +++ b/web/node.go @@ -10,8 +10,8 @@ import ( "fmt" "sunteng/commons/log" - "sunteng/cronsun/conf" - "sunteng/cronsun/models" + "github.com/shunfei/cronsun/conf" + "github.com/shunfei/cronsun/models" ) type Node struct{} diff --git a/web/routers.go b/web/routers.go index c81b7d7..5058f66 100644 --- a/web/routers.go +++ b/web/routers.go @@ -6,8 +6,8 @@ import ( "github.com/gorilla/mux" - "sunteng/cronsun/conf" - "sunteng/cronsun/models" + "github.com/shunfei/cronsun/conf" + "github.com/shunfei/cronsun/models" ) func GetVersion(w http.ResponseWriter, r *http.Request) {