Commit ef8512cc authored by 张亚松's avatar 张亚松

Merge branch 'dev' into 'master'

Dev

See merge request apaas-v3/apaas-meshproxy!4
parents 94e4121b dba06cf0
platform: 10.11.92.34 platform: 10.11.92.34
workspace: workspace:
base: /go base: /go
path: src/gitlab.wodcloud.com/apaas/apaas-meshproxy path: src/gitlab.wodcloud.com/apaas-v3/apaas-meshproxy
clone: clone:
git: git:
image: registry.cn-qingdao.aliyuncs.com/wod/devops-git:1.0 image: registry.cn-qingdao.aliyuncs.com/wod/devops-git:1.0
...@@ -127,4 +127,3 @@ pipeline: ...@@ -127,4 +127,3 @@ pipeline:
when: when:
branch: branch:
- master - master
\ No newline at end of file
\ No newline at end of file
module gitlab.wodcloud.com/apaas/apaas-meshproxy module gitlab.wodcloud.com/apaas-v3/apaas-meshproxy
go 1.12 go 1.12
......
...@@ -2,13 +2,14 @@ package client ...@@ -2,13 +2,14 @@ package client
import ( import (
"fmt" "fmt"
"time"
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"
_ "github.com/lib/pq" _ "github.com/lib/pq"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/xormplus/core" "github.com/xormplus/core"
"github.com/xormplus/xorm" "github.com/xormplus/xorm"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/config" "gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/config"
"time"
) )
var DB *xorm.Engine var DB *xorm.Engine
......
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"strings" "strings"
"time" "time"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/config" "gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/config"
"github.com/go-redis/redis" "github.com/go-redis/redis"
) )
......
package handler package handler
import ( import (
"github.com/gin-gonic/gin"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/tools"
"time" "time"
"github.com/gin-gonic/gin"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/tools"
) )
func Health(c *gin.Context) { func Health(c *gin.Context) {
......
...@@ -7,12 +7,6 @@ import ( ...@@ -7,12 +7,6 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/gin-gonic/gin"
"github.com/spf13/cast"
"github.com/vulcand/oxy/forward"
"github.com/vulcand/oxy/testutils"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/model"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/service"
"io/ioutil" "io/ioutil"
"log" "log"
"net/http" "net/http"
...@@ -20,6 +14,13 @@ import ( ...@@ -20,6 +14,13 @@ import (
"strconv" "strconv"
"strings" "strings"
"time" "time"
"github.com/gin-gonic/gin"
"github.com/spf13/cast"
"github.com/vulcand/oxy/forward"
"github.com/vulcand/oxy/testutils"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/model"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/service"
) )
//var Resp *http.Response //var Resp *http.Response
......
...@@ -7,9 +7,9 @@ import ( ...@@ -7,9 +7,9 @@ import (
"time" "time"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/router" "gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/router"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/config" "gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/config"
"github.com/gin-gonic/contrib/ginrus" "github.com/gin-gonic/contrib/ginrus"
"github.com/spf13/pflag" "github.com/spf13/pflag"
......
...@@ -16,11 +16,12 @@ package router ...@@ -16,11 +16,12 @@ package router
import ( import (
"fmt" "fmt"
"github.com/gin-gonic/gin"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/config"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/handler"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/router/middleware/header"
"net/http" "net/http"
"github.com/gin-gonic/gin"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/config"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/handler"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/router/middleware/header"
) )
// Load loads the router // Load loads the router
......
...@@ -10,16 +10,17 @@ package service ...@@ -10,16 +10,17 @@ package service
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/spf13/cast"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/client"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/config"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/dao"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/model"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/model/request"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/model/tables"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/tools/dataconvertutil"
"log" "log"
"time" "time"
"github.com/spf13/cast"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/client"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/config"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/dao"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/model"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/model/request"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/model/tables"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/tools/dataconvertutil"
) )
// 判断是否设置了敏感字段,并有敏感词 // 判断是否设置了敏感字段,并有敏感词
......
...@@ -2,9 +2,10 @@ package dataconvertutil ...@@ -2,9 +2,10 @@ package dataconvertutil
import ( import (
"encoding/json" "encoding/json"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/logger"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/model/request" "gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/logger"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/tools" "gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/model/request"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/tools"
) )
//字段结构 转json //字段结构 转json
......
...@@ -5,14 +5,15 @@ import ( ...@@ -5,14 +5,15 @@ import (
"crypto/md5" "crypto/md5"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/Chain-Zhang/pinyin"
"github.com/gin-gonic/gin"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/config"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/model/tables"
"io" "io"
"strconv" "strconv"
"strings" "strings"
"time" "time"
"github.com/Chain-Zhang/pinyin"
"github.com/gin-gonic/gin"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/config"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/model/tables"
) )
// , http请求 // , http请求
......
package tools package tools
import ( import (
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/config"
"time" "time"
"gitlab.wodcloud.com/apaas-v3/apaas-meshproxy/src/config"
) )
type JsonTime time.Time type JsonTime time.Time
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment