Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-meshproxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-meshproxy
Commits
27b77027
Commit
27b77027
authored
Mar 09, 2022
by
张亚松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改gitlb地址
parent
94e4121b
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
44 additions
and
37 deletions
+44
-37
.beagle.yml
.beagle.yml
+2
-3
go.mod
go.mod
+1
-1
src/client/db.go
src/client/db.go
+3
-2
src/client/redis.go
src/client/redis.go
+1
-1
src/handler/base.go
src/handler/base.go
+3
-2
src/handler/proxyhandler.go
src/handler/proxyhandler.go
+7
-6
src/main.go
src/main.go
+2
-2
src/router/router.go
src/router/router.go
+5
-4
src/service/field.go
src/service/field.go
+9
-8
src/tools/dataconvertutil/dataconvertutil.go
src/tools/dataconvertutil/dataconvertutil.go
+4
-3
src/tools/public.go
src/tools/public.go
+5
-4
src/tools/tool.go
src/tools/tool.go
+2
-1
No files found.
.beagle.yml
View file @
27b77027
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
go.mod
View file @
27b77027
module gitlab.wodcloud.com/apaas/apaas-meshproxy
module gitlab.wodcloud.com/apaas
-v3
/apaas-meshproxy
go 1.12
go 1.12
...
...
src/client/db.go
View file @
27b77027
...
@@ -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
...
...
src/client/redis.go
View file @
27b77027
...
@@ -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"
)
)
...
...
src/handler/base.go
View file @
27b77027
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
)
{
...
...
src/handler/proxyhandler.go
View file @
27b77027
...
@@ -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
...
...
src/main.go
View file @
27b77027
...
@@ -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"
...
...
src/router/router.go
View file @
27b77027
...
@@ -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
...
...
src/service/field.go
View file @
27b77027
...
@@ -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"
)
)
// 判断是否设置了敏感字段,并有敏感词
// 判断是否设置了敏感字段,并有敏感词
...
...
src/tools/dataconvertutil/dataconvertutil.go
View file @
27b77027
...
@@ -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
...
...
src/tools/public.go
View file @
27b77027
...
@@ -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请求
...
...
src/tools/tool.go
View file @
27b77027
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment