pkg: 迁移包名到 github

pull/1/head
miraclesu 2017-05-09 18:27:32 +08:00
parent 684815b723
commit 7ccdfcaf10
19 changed files with 30 additions and 30 deletions

View File

@ -9,9 +9,9 @@ import (
"sunteng/commons/event" "sunteng/commons/event"
"sunteng/commons/log" "sunteng/commons/log"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
"sunteng/cronsun/models" "github.com/shunfei/cronsun/models"
"sunteng/cronsun/node" "github.com/shunfei/cronsun/node"
) )
var ( var (

View File

@ -8,9 +8,9 @@ import (
"sunteng/commons/event" "sunteng/commons/event"
"sunteng/commons/log" "sunteng/commons/log"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
"sunteng/cronsun/models" "github.com/shunfei/cronsun/models"
"sunteng/cronsun/web" "github.com/shunfei/cronsun/web"
) )
func main() { func main() {

View File

@ -8,7 +8,7 @@ import (
client "github.com/coreos/etcd/clientv3" client "github.com/coreos/etcd/clientv3"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
) )
var ( var (

View File

@ -2,7 +2,7 @@ package models
import ( import (
"sunteng/commons/db/imgo" "sunteng/commons/db/imgo"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
) )
var ( var (

View File

@ -9,7 +9,7 @@ import (
"github.com/coreos/etcd/mvcc/mvccpb" "github.com/coreos/etcd/mvcc/mvccpb"
"sunteng/commons/log" "sunteng/commons/log"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
) )
// 结点类型分组 // 结点类型分组

View File

@ -19,8 +19,8 @@ import (
"github.com/coreos/etcd/mvcc/mvccpb" "github.com/coreos/etcd/mvcc/mvccpb"
"sunteng/commons/log" "sunteng/commons/log"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
"sunteng/cronsun/node/cron" "github.com/shunfei/cronsun/node/cron"
) )
const ( const (

View File

@ -13,7 +13,7 @@ import (
"gopkg.in/mgo.v2/bson" "gopkg.in/mgo.v2/bson"
"sunteng/commons/log" "sunteng/commons/log"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
) )
const ( const (

View File

@ -12,7 +12,7 @@ import (
"github.com/go-gomail/gomail" "github.com/go-gomail/gomail"
"sunteng/commons/log" "sunteng/commons/log"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
) )
type Noticer interface { type Noticer interface {

View File

@ -3,7 +3,7 @@ package models
import ( import (
client "github.com/coreos/etcd/clientv3" client "github.com/coreos/etcd/clientv3"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
) )
// 马上执行 job 任务 // 马上执行 job 任务

View File

@ -10,7 +10,7 @@ import (
"strings" "strings"
"sunteng/commons/log" "sunteng/commons/log"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
) )
var ( var (

View File

@ -1,7 +1,7 @@
package node package node
import ( import (
"sunteng/cronsun/models" "github.com/shunfei/cronsun/models"
) )
type Groups map[string]*models.Group type Groups map[string]*models.Group

View File

@ -1,7 +1,7 @@
package node package node
import ( import (
"sunteng/cronsun/models" "github.com/shunfei/cronsun/models"
) )
type Jobs map[string]*models.Job type Jobs map[string]*models.Job

View File

@ -10,9 +10,9 @@ import (
"sunteng/commons/log" "sunteng/commons/log"
"sunteng/commons/util" "sunteng/commons/util"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
"sunteng/cronsun/models" "github.com/shunfei/cronsun/models"
"sunteng/cronsun/node/cron" "github.com/shunfei/cronsun/node/cron"
) )
// Node 执行 cron 命令服务的结构体 // Node 执行 cron 命令服务的结构体

View File

@ -3,7 +3,7 @@ package web
import ( import (
"net/http" "net/http"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
) )
type Configuration struct{} type Configuration struct{}

View File

@ -6,8 +6,8 @@ import (
v3 "github.com/coreos/etcd/clientv3" v3 "github.com/coreos/etcd/clientv3"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
"sunteng/cronsun/models" "github.com/shunfei/cronsun/models"
) )
type Info struct{} type Info struct{}

View File

@ -10,8 +10,8 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"sunteng/commons/log" "sunteng/commons/log"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
"sunteng/cronsun/models" "github.com/shunfei/cronsun/models"
"time" "time"
) )

View File

@ -10,7 +10,7 @@ import (
"gopkg.in/mgo.v2/bson" "gopkg.in/mgo.v2/bson"
"math" "math"
"sunteng/cronsun/models" "github.com/shunfei/cronsun/models"
) )
type JobLog struct{} type JobLog struct{}

View File

@ -10,8 +10,8 @@ import (
"fmt" "fmt"
"sunteng/commons/log" "sunteng/commons/log"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
"sunteng/cronsun/models" "github.com/shunfei/cronsun/models"
) )
type Node struct{} type Node struct{}

View File

@ -6,8 +6,8 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"sunteng/cronsun/conf" "github.com/shunfei/cronsun/conf"
"sunteng/cronsun/models" "github.com/shunfei/cronsun/models"
) )
func GetVersion(w http.ResponseWriter, r *http.Request) { func GetVersion(w http.ResponseWriter, r *http.Request) {