Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
959901fcad | ||
|
|
83c1e36469 |
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@@ -1,8 +1,8 @@
|
|||||||
package cache
|
package cache
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"code.infininov.com/Infini/unitech-golib/tlog"
|
||||||
"errors"
|
"errors"
|
||||||
"github.com/MAN00K/unitech_golib/tlog"
|
|
||||||
"github.com/creachadair/cityhash"
|
"github.com/creachadair/cityhash"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package gfetcd
|
package gfetcd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"code.infininov.com/Infini/unitech-golib/tlog"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/MAN00K/unitech_golib/tlog"
|
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/MAN00K/unitech_golib/tlog"
|
"code.infininov.com/Infini/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"
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module github.com/MAN00K/unitech_golib
|
module code.infininov.com/Infini/unitech-golib
|
||||||
|
|
||||||
go 1.16
|
go 1.16
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/MAN00K/unitech_golib/tlog"
|
"code.infininov.com/Infini/unitech-golib/tlog"
|
||||||
|
|
||||||
"github.com/Shopify/sarama"
|
"github.com/Shopify/sarama"
|
||||||
cluster "github.com/bsm/sarama-cluster"
|
cluster "github.com/bsm/sarama-cluster"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package lrucache
|
package lrucache
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"code.infininov.com/Infini/unitech-golib/tlog"
|
||||||
"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"
|
||||||
"time"
|
"time"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"code.infininov.com/Infini/unitech-golib/metric"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/MAN00K/unitech_golib/metric"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"code.infininov.com/Infini/unitech-golib/metric"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/MAN00K/unitech_golib/metric"
|
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/MAN00K/unitech_golib/tlog"
|
"code.infininov.com/Infini/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"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"code.infininov.com/Infini/unitech-golib/metrics"
|
||||||
|
"code.infininov.com/Infini/unitech-golib/metrics/prometheus"
|
||||||
|
"code.infininov.com/Infini/unitech-golib/tlog"
|
||||||
"flag"
|
"flag"
|
||||||
"github.com/MAN00K/unitech_golib/metrics"
|
|
||||||
"github.com/MAN00K/unitech_golib/metrics/prometheus"
|
|
||||||
"github.com/MAN00K/unitech_golib/tlog"
|
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package metrics
|
package metrics
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"code.infininov.com/Infini/unitech-golib/tlog"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/MAN00K/unitech_golib/tlog"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package prometheus
|
package prometheus
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/MAN00K/unitech_golib/metrics"
|
"code.infininov.com/Infini/unitech-golib/metrics"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package prometheus
|
package prometheus
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"code.infininov.com/Infini/unitech-golib/metrics"
|
||||||
"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"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package qgrpc
|
package qgrpc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"code.infininov.com/Infini/unitech-golib/qgrpc/ping"
|
||||||
|
"code.infininov.com/Infini/unitech-golib/tlog"
|
||||||
"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"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/keepalive"
|
"google.golang.org/grpc/keepalive"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package qgrpc
|
package qgrpc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"code.infininov.com/Infini/unitech-golib/tlog"
|
||||||
"context"
|
"context"
|
||||||
"github.com/MAN00K/unitech_golib/tlog"
|
|
||||||
"github.com/coreos/etcd/clientv3"
|
"github.com/coreos/etcd/clientv3"
|
||||||
"path"
|
"path"
|
||||||
"time"
|
"time"
|
||||||
|
|||||||
Reference in New Issue
Block a user