mirror of https://github.com/shunfei/cronsun
pkg: 迁移包名到 github
parent
684815b723
commit
7ccdfcaf10
|
@ -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 (
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 结点类型分组
|
// 结点类型分组
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 任务
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
|
|
||||||
"strings"
|
"strings"
|
||||||
"sunteng/commons/log"
|
"sunteng/commons/log"
|
||||||
"sunteng/cronsun/conf"
|
"github.com/shunfei/cronsun/conf"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 命令服务的结构体
|
||||||
|
|
|
@ -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{}
|
||||||
|
|
|
@ -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{}
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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{}
|
||||||
|
|
|
@ -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{}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue