feat: rename module from tal-tech to zeromicro (#1413)

This commit is contained in:
Kevin Wan
2022-01-04 15:51:32 +08:00
committed by GitHub
parent e267d94ee1
commit a91c3907a8
277 changed files with 578 additions and 578 deletions

View File

@@ -9,8 +9,8 @@ import (
"net/http/httputil"
"github.com/golang-jwt/jwt"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/rest/token"
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/rest/token"
)
const (

View File

@@ -5,11 +5,11 @@ import (
"net/http"
"strings"
"github.com/tal-tech/go-zero/core/breaker"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/core/stat"
"github.com/tal-tech/go-zero/rest/httpx"
"github.com/tal-tech/go-zero/rest/internal/security"
"github.com/zeromicro/go-zero/core/breaker"
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/core/stat"
"github.com/zeromicro/go-zero/rest/httpx"
"github.com/zeromicro/go-zero/rest/internal/security"
)
const breakerSeparator = "://"

View File

@@ -7,8 +7,8 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/core/stat"
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/core/stat"
)
func init() {

View File

@@ -4,10 +4,10 @@ import (
"net/http"
"time"
"github.com/tal-tech/go-zero/core/codec"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/rest/httpx"
"github.com/tal-tech/go-zero/rest/internal/security"
"github.com/zeromicro/go-zero/core/codec"
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/rest/httpx"
"github.com/zeromicro/go-zero/rest/internal/security"
)
const contentSecurity = "X-Content-Security"

View File

@@ -18,8 +18,8 @@ import (
"time"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/codec"
"github.com/tal-tech/go-zero/rest/httpx"
"github.com/zeromicro/go-zero/core/codec"
"github.com/zeromicro/go-zero/rest/httpx"
)
const timeDiff = time.Hour * 2 * 24

View File

@@ -10,8 +10,8 @@ import (
"net"
"net/http"
"github.com/tal-tech/go-zero/core/codec"
"github.com/tal-tech/go-zero/core/logx"
"github.com/zeromicro/go-zero/core/codec"
"github.com/zeromicro/go-zero/core/logx"
)
const maxBytes = 1 << 20 // 1 MiB

View File

@@ -10,7 +10,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/codec"
"github.com/zeromicro/go-zero/core/codec"
)
const (

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strings"
"github.com/tal-tech/go-zero/rest/httpx"
"github.com/zeromicro/go-zero/rest/httpx"
)
const gzipEncoding = "gzip"

View File

@@ -10,8 +10,8 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/codec"
"github.com/tal-tech/go-zero/rest/httpx"
"github.com/zeromicro/go-zero/core/codec"
"github.com/zeromicro/go-zero/rest/httpx"
)
func TestGunzipHandler(t *testing.T) {

View File

@@ -14,13 +14,13 @@ import (
"strings"
"time"
"github.com/tal-tech/go-zero/core/iox"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/core/syncx"
"github.com/tal-tech/go-zero/core/timex"
"github.com/tal-tech/go-zero/core/utils"
"github.com/tal-tech/go-zero/rest/httpx"
"github.com/tal-tech/go-zero/rest/internal"
"github.com/zeromicro/go-zero/core/iox"
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/core/syncx"
"github.com/zeromicro/go-zero/core/timex"
"github.com/zeromicro/go-zero/core/utils"
"github.com/zeromicro/go-zero/rest/httpx"
"github.com/zeromicro/go-zero/rest/internal"
)
const (

View File

@@ -9,7 +9,7 @@ import (
"time"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/rest/internal"
"github.com/zeromicro/go-zero/rest/internal"
)
func init() {

View File

@@ -3,7 +3,7 @@ package handler
import (
"net/http"
"github.com/tal-tech/go-zero/rest/internal"
"github.com/zeromicro/go-zero/rest/internal"
)
// MaxBytesHandler returns a middleware that limit reading of http request body.

View File

@@ -3,9 +3,9 @@ package handler
import (
"net/http"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/core/syncx"
"github.com/tal-tech/go-zero/rest/internal"
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/core/syncx"
"github.com/zeromicro/go-zero/rest/internal"
)
// MaxConns returns a middleware that limit the concurrent connections.

View File

@@ -9,7 +9,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/lang"
"github.com/zeromicro/go-zero/core/lang"
)
const conns = 4

View File

@@ -3,8 +3,8 @@ package handler
import (
"net/http"
"github.com/tal-tech/go-zero/core/stat"
"github.com/tal-tech/go-zero/core/timex"
"github.com/zeromicro/go-zero/core/stat"
"github.com/zeromicro/go-zero/core/timex"
)
// MetricHandler returns a middleware that stat the metrics.

View File

@@ -6,7 +6,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/stat"
"github.com/zeromicro/go-zero/core/stat"
)
func TestMetricHandler(t *testing.T) {

View File

@@ -5,10 +5,10 @@ import (
"strconv"
"time"
"github.com/tal-tech/go-zero/core/metric"
"github.com/tal-tech/go-zero/core/prometheus"
"github.com/tal-tech/go-zero/core/timex"
"github.com/tal-tech/go-zero/rest/internal/security"
"github.com/zeromicro/go-zero/core/metric"
"github.com/zeromicro/go-zero/core/prometheus"
"github.com/zeromicro/go-zero/core/timex"
"github.com/zeromicro/go-zero/rest/internal/security"
)
const serverNamespace = "http_server"

View File

@@ -6,7 +6,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/prometheus"
"github.com/zeromicro/go-zero/core/prometheus"
)
func TestPromMetricHandler_Disabled(t *testing.T) {

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"runtime/debug"
"github.com/tal-tech/go-zero/rest/internal"
"github.com/zeromicro/go-zero/rest/internal"
)
// RecoverHandler returns a middleware that recovers if panic happens.

View File

@@ -4,11 +4,11 @@ import (
"net/http"
"sync"
"github.com/tal-tech/go-zero/core/load"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/core/stat"
"github.com/tal-tech/go-zero/rest/httpx"
"github.com/tal-tech/go-zero/rest/internal/security"
"github.com/zeromicro/go-zero/core/load"
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/core/stat"
"github.com/zeromicro/go-zero/rest/httpx"
"github.com/zeromicro/go-zero/rest/internal/security"
)
const serviceType = "api"

View File

@@ -8,8 +8,8 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/load"
"github.com/tal-tech/go-zero/core/stat"
"github.com/zeromicro/go-zero/core/load"
"github.com/zeromicro/go-zero/core/stat"
)
func init() {

View File

@@ -13,8 +13,8 @@ import (
"sync"
"time"
"github.com/tal-tech/go-zero/rest/httpx"
"github.com/tal-tech/go-zero/rest/internal"
"github.com/zeromicro/go-zero/rest/httpx"
"github.com/zeromicro/go-zero/rest/internal"
)
const (

View File

@@ -3,7 +3,7 @@ package handler
import (
"net/http"
"github.com/tal-tech/go-zero/core/trace"
"github.com/zeromicro/go-zero/core/trace"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/propagation"
semconv "go.opentelemetry.io/otel/semconv/v1.4.0"

View File

@@ -7,7 +7,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
ztrace "github.com/tal-tech/go-zero/core/trace"
ztrace "github.com/zeromicro/go-zero/core/trace"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/propagation"
"go.opentelemetry.io/otel/trace"