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