pkg: 迁移包名到 github

pull/1/head
miraclesu 8 years ago
parent 684815b723
commit 7ccdfcaf10

@ -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 (

@ -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() {

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

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

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

@ -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 (

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

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

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

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

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

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

@ -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 命令服务的结构体

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

@ -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{}

@ -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"
)

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

@ -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{}

@ -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) {

Loading…
Cancel
Save