Skip to content

Commit

Permalink
porting to github
Browse files Browse the repository at this point in the history
  • Loading branch information
YenchangChan authored and yuzhichang committed Mar 5, 2021
1 parent e4ba284 commit b8fe507
Show file tree
Hide file tree
Showing 26 changed files with 349 additions and 165 deletions.
2 changes: 1 addition & 1 deletion cmd/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/colinmarc/hdfs/v2"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"gitlab.eoitek.net/EOI/ckman/common"
"github.com/housepower/ckman/common"
)

// export data of given time range to HDFS
Expand Down
2 changes: 1 addition & 1 deletion cmd/purger/purger.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
_ "github.com/ClickHouse/clickhouse-go"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"gitlab.eoitek.net/EOI/ckman/common"
"github.com/housepower/ckman/common"
)

// purge data of given time range
Expand Down
2 changes: 1 addition & 1 deletion cmd/rebalancer/rebalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/k0kubun/pp"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"gitlab.eoitek.net/EOI/ckman/common"
"github.com/housepower/ckman/common"
"golang.org/x/crypto/ssh"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/schemer/schemer.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/MakeNowJust/heredoc"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"gitlab.eoitek.net/EOI/ckman/common"
"github.com/housepower/ckman/common"
)

// Create objects on a new ClickHouse instance.
Expand Down
2 changes: 1 addition & 1 deletion common/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package common

import (
"github.com/dgrijalva/jwt-go"
"gitlab.eoitek.net/EOI/ckman/model"
"github.com/housepower/ckman/model"
)

var (
Expand Down
12 changes: 6 additions & 6 deletions controller/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import (
"strconv"
"strings"

"gitlab.eoitek.net/EOI/ckman/service/nacos"
"github.com/housepower/ckman/service/nacos"

"github.com/gin-gonic/gin"
"gitlab.eoitek.net/EOI/ckman/deploy"
_ "gitlab.eoitek.net/EOI/ckman/docs"
"gitlab.eoitek.net/EOI/ckman/log"
"gitlab.eoitek.net/EOI/ckman/model"
"gitlab.eoitek.net/EOI/ckman/service/clickhouse"
"github.com/housepower/ckman/deploy"
_ "github.com/housepower/ckman/docs"
"github.com/housepower/ckman/log"
"github.com/housepower/ckman/model"
"github.com/housepower/ckman/service/clickhouse"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions controller/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package controller

import (
"github.com/gin-gonic/gin"
"gitlab.eoitek.net/EOI/ckman/config"
"gitlab.eoitek.net/EOI/ckman/model"
"github.com/housepower/ckman/config"
"github.com/housepower/ckman/model"
"os"
"syscall"
)
Expand Down
12 changes: 6 additions & 6 deletions controller/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"fmt"

"github.com/gin-gonic/gin"
"gitlab.eoitek.net/EOI/ckman/config"
"gitlab.eoitek.net/EOI/ckman/deploy"
"gitlab.eoitek.net/EOI/ckman/log"
"gitlab.eoitek.net/EOI/ckman/model"
"gitlab.eoitek.net/EOI/ckman/service/clickhouse"
"gitlab.eoitek.net/EOI/ckman/service/nacos"
"github.com/housepower/ckman/config"
"github.com/housepower/ckman/deploy"
"github.com/housepower/ckman/log"
"github.com/housepower/ckman/model"
"github.com/housepower/ckman/service/clickhouse"
"github.com/housepower/ckman/service/nacos"
)

type DeployController struct {
Expand Down
6 changes: 3 additions & 3 deletions controller/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package controller

import (
"github.com/gin-gonic/gin"
"gitlab.eoitek.net/EOI/ckman/config"
"gitlab.eoitek.net/EOI/ckman/model"
"gitlab.eoitek.net/EOI/ckman/service/prometheus"
"github.com/housepower/ckman/config"
"github.com/housepower/ckman/model"
"github.com/housepower/ckman/service/prometheus"
"strconv"
)

Expand Down
6 changes: 3 additions & 3 deletions controller/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"bytes"
"fmt"
"github.com/gin-gonic/gin"
"gitlab.eoitek.net/EOI/ckman/config"
"gitlab.eoitek.net/EOI/ckman/log"
"gitlab.eoitek.net/EOI/ckman/model"
"github.com/housepower/ckman/config"
"github.com/housepower/ckman/log"
"github.com/housepower/ckman/model"
"io"
"io/ioutil"
"mime/multipart"
Expand Down
6 changes: 3 additions & 3 deletions controller/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/dgrijalva/jwt-go"
"github.com/gin-gonic/gin"
"github.com/patrickmn/go-cache"
"gitlab.eoitek.net/EOI/ckman/common"
"gitlab.eoitek.net/EOI/ckman/config"
"gitlab.eoitek.net/EOI/ckman/model"
"github.com/housepower/ckman/common"
"github.com/housepower/ckman/config"
"github.com/housepower/ckman/model"
)

var TokenCache *cache.Cache
Expand Down
6 changes: 3 additions & 3 deletions controller/zookeeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"github.com/gin-gonic/gin"
jsoniter "github.com/json-iterator/go"
"gitlab.eoitek.net/EOI/ckman/model"
"gitlab.eoitek.net/EOI/ckman/service/clickhouse"
"gitlab.eoitek.net/EOI/ckman/service/zookeeper"
"github.com/housepower/ckman/model"
"github.com/housepower/ckman/service/clickhouse"
"github.com/housepower/ckman/service/zookeeper"
"io/ioutil"
"net/http"
"strings"
Expand Down
10 changes: 5 additions & 5 deletions deploy/ck.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"encoding/xml"
"fmt"
"gitlab.eoitek.net/EOI/ckman/config"
"github.com/housepower/ckman/config"
"io/ioutil"
"os"
"path"
Expand All @@ -14,10 +14,10 @@ import (
"text/template"
"time"

"gitlab.eoitek.net/EOI/ckman/common"
"gitlab.eoitek.net/EOI/ckman/log"
"gitlab.eoitek.net/EOI/ckman/model"
"gitlab.eoitek.net/EOI/ckman/service/clickhouse"
"github.com/housepower/ckman/common"
"github.com/housepower/ckman/log"
"github.com/housepower/ckman/model"
"github.com/housepower/ckman/service/clickhouse"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@json-editor/json-editor": "^2.5.1",
"ace-builds": "^1.4.12",
"axios": "^0.19.2",
"axios": "^0.21.1",
"blueimp-md5": "^2.17.0",
"bytes": "^3.1.0",
"core-js": "^3.8.0",
Expand Down Expand Up @@ -51,4 +51,4 @@
"vue-template-compiler": "^2.6.11",
"worker-loader": "^3.0.3"
}
}
}
27 changes: 11 additions & 16 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,40 +1,35 @@
module gitlab.eoitek.net/EOI/ckman
module github.com/housepower/ckman

go 1.15
go 1.16

require (
github.com/ClickHouse/clickhouse-go v1.4.3
github.com/MakeNowJust/heredoc v1.0.0
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
github.com/choidamdam/gin-static-pkger v0.0.0-20201119021339-c0f138638274
github.com/colinmarc/hdfs/v2 v2.1.1
github.com/colinmarc/hdfs/v2 v2.2.0
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/gin-contrib/pprof v1.3.0
github.com/gin-gonic/gin v1.6.3
github.com/go-openapi/spec v0.20.2 // indirect
github.com/go-zookeeper/zk v1.0.2
github.com/json-iterator/go v1.1.9
github.com/json-iterator/go v1.1.10
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect
github.com/k0kubun/pp v3.0.1+incompatible
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
github.com/markbates/pkger v0.17.1
github.com/mitchellh/mapstructure v1.1.2
github.com/nacos-group/nacos-sdk-go v1.0.5
github.com/nacos-group/nacos-sdk-go v1.0.6
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/pkg/errors v0.9.1
github.com/pkg/sftp v1.12.0
github.com/prometheus/client_golang v0.9.3
github.com/prometheus/common v0.4.0
github.com/sirupsen/logrus v1.2.0
github.com/spf13/cobra v1.1.0
github.com/swaggo/gin-swagger v1.2.0
github.com/prometheus/client_golang v1.9.0
github.com/prometheus/common v0.18.0
github.com/sirupsen/logrus v1.8.0
github.com/spf13/cobra v1.1.3
github.com/swaggo/gin-swagger v1.3.0
github.com/swaggo/swag v1.7.0
github.com/txn2/txeh v1.3.0
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.16.0
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c // indirect
golang.org/x/tools v0.1.0 // indirect
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83
gopkg.in/natefinch/lumberjack.v2 v2.0.0
gopkg.in/sevlyar/go-daemon.v0 v0.1.5
gopkg.in/yaml.v2 v2.4.0
Expand Down
Loading

0 comments on commit b8fe507

Please sign in to comment.