update package reference

This commit is contained in:
kevin
2020-08-08 16:40:10 +08:00
parent d19d25c72f
commit 0a7e0cce77
377 changed files with 881 additions and 1423 deletions

View File

@@ -1,8 +1,8 @@
package config
import (
"zero/rest"
"zero/rpcx"
"github.com/tal-tech/go-zero/rest"
"github.com/tal-tech/go-zero/rpcx"
)
type Config struct {

View File

@@ -3,12 +3,12 @@ package main
import (
"flag"
"zero/core/conf"
"zero/example/graceful/etcd/api/config"
"zero/example/graceful/etcd/api/handler"
"zero/example/graceful/etcd/api/svc"
"zero/rest"
"zero/rpcx"
"github.com/tal-tech/go-zero/core/conf"
"github.com/tal-tech/go-zero/example/graceful/etcd/api/config"
"github.com/tal-tech/go-zero/example/graceful/etcd/api/handler"
"github.com/tal-tech/go-zero/example/graceful/etcd/api/svc"
"github.com/tal-tech/go-zero/rest"
"github.com/tal-tech/go-zero/rpcx"
)
var configFile = flag.String("f", "etc/graceful-api.json", "the config file")

View File

@@ -7,12 +7,12 @@ import (
"os"
"time"
"zero/core/executors"
"zero/core/logx"
"zero/example/graceful/etcd/api/svc"
"zero/example/graceful/etcd/api/types"
"zero/example/graceful/etcd/rpc/graceful"
"zero/rest/httpx"
"github.com/tal-tech/go-zero/core/executors"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/example/graceful/etcd/api/svc"
"github.com/tal-tech/go-zero/example/graceful/etcd/api/types"
"github.com/tal-tech/go-zero/example/graceful/etcd/rpc/graceful"
"github.com/tal-tech/go-zero/rest/httpx"
)
func gracefulHandler(ctx *svc.ServiceContext) http.HandlerFunc {

View File

@@ -4,8 +4,8 @@ package handler
import (
"net/http"
"zero/example/graceful/etcd/api/svc"
"zero/rest"
"github.com/tal-tech/go-zero/example/graceful/etcd/api/svc"
"github.com/tal-tech/go-zero/rest"
)
func RegisterHandlers(engine *rest.Server, ctx *svc.ServiceContext) {

View File

@@ -1,6 +1,6 @@
package svc
import "zero/rpcx"
import "github.com/tal-tech/go-zero/rpcx"
type ServiceContext struct {
Client *rpcx.RpcClient