Rename module name
This commit is contained in:
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@@ -3,7 +3,7 @@ package cache
|
||||
import (
|
||||
"errors"
|
||||
"github.com/creachadair/cityhash"
|
||||
"unitechdev/golib/tlog"
|
||||
"gitlab.com/unitechdev/golib/tlog"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package gfetcd
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"unitechdev/golib/tlog"
|
||||
"gitlab.com/unitechdev/golib/tlog"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"unitechdev/golib/tlog"
|
||||
"gitlab.com/unitechdev/golib/tlog"
|
||||
|
||||
"github.com/coreos/etcd/clientv3"
|
||||
etcdnaming "github.com/coreos/etcd/clientv3/naming"
|
||||
|
||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module unitechdev/golib
|
||||
module gitlab.com/unitechdev/golib
|
||||
|
||||
go 1.14
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"unitechdev/golib/tlog"
|
||||
"gitlab.com/unitechdev/golib/tlog"
|
||||
|
||||
"github.com/Shopify/sarama"
|
||||
cluster "github.com/bsm/sarama-cluster"
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"errors"
|
||||
"github.com/creachadair/cityhash"
|
||||
"github.com/hashicorp/golang-lru"
|
||||
"unitechdev/golib/tlog"
|
||||
"gitlab.com/unitechdev/golib/tlog"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"unitechdev/golib/metric"
|
||||
"gitlab.com/unitechdev/golib/metric"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"unitechdev/golib/metric"
|
||||
"gitlab.com/unitechdev/golib/metric"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
consulapi "github.com/hashicorp/consul/api"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
"unitechdev/golib/tlog"
|
||||
"gitlab.com/unitechdev/golib/tlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -2,9 +2,9 @@ package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"unitechdev/golib/metrics"
|
||||
"unitechdev/golib/metrics/prometheus"
|
||||
"unitechdev/golib/tlog"
|
||||
"gitlab.com/unitechdev/golib/metrics"
|
||||
"gitlab.com/unitechdev/golib/metrics/prometheus"
|
||||
"gitlab.com/unitechdev/golib/tlog"
|
||||
"math/rand"
|
||||
"os"
|
||||
"os/signal"
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"unitechdev/golib/tlog"
|
||||
"gitlab.com/unitechdev/golib/tlog"
|
||||
"net/http"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
@@ -2,7 +2,7 @@ package prometheus
|
||||
|
||||
import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"unitechdev/golib/metrics"
|
||||
"gitlab.com/unitechdev/golib/metrics"
|
||||
)
|
||||
|
||||
// Counter implements Counter, via a Prometheus CounterVec.
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
stdprometheus "github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
"unitechdev/golib/metrics"
|
||||
"gitlab.com/unitechdev/golib/metrics"
|
||||
"io/ioutil"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/coreos/etcd/clientv3"
|
||||
"unitechdev/golib/qgrpc/ping"
|
||||
"unitechdev/golib/tlog"
|
||||
"gitlab.com/unitechdev/golib/qgrpc/ping"
|
||||
"gitlab.com/unitechdev/golib/tlog"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/keepalive"
|
||||
"strings"
|
||||
|
||||
@@ -3,7 +3,7 @@ package qgrpc
|
||||
import (
|
||||
"context"
|
||||
"github.com/coreos/etcd/clientv3"
|
||||
"unitechdev/golib/tlog"
|
||||
"gitlab.com/unitechdev/golib/tlog"
|
||||
"path"
|
||||
"time"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user