This commit is contained in:
MAN00K
2025-07-22 14:08:24 +08:00
parent 35936e0bf2
commit 589d39c893
14 changed files with 17 additions and 17 deletions

2
cache/cache.go vendored
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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