Categorygithub.com/didi/gatekeeper
modulepackage
1.0.0
Repository: https://github.com/didi/gatekeeper.git
Documentation: pkg.go.dev

# README

快速开始(Quick Start)

环境要求 >= go 1.12.0

GO环境安装

Go 版本校验

go version
go version go1.12.15 darwin/amd64

服务初始化

自动初始化

cd install
sh install.sh # windows 可直接双击运行

手动初始化

  • 下载类库依赖
export GO111MODULE=on && export GOPROXY=https://goproxy.cn
cd gatekeeper
go mod tidy
  • 创建 db 并导入数据
mysql -h 127.0.0.1 -u root -p -e "CREATE DATABASE gatekeeper DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;"
mysql -h 127.0.0.1 -u root -p gatekeeper < gatekeeper.sql --default-character-set=utf8
  • 调整 mysql、redis 配置文件

修改 ./conf/dev/mysql.toml 和 ./conf/dev/redis.toml 为自己的环境配置。

  • 运行服务

运行管理面板

go run main.go run -c ./conf/dev/ -p control

运行代理服务

go run main.go run -c ./conf/dev/ -p proxy

自动化集成测试

请参照 test_suites/README.md

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author