gatekeeper

command module
Version: v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Directories

Path Synopsis
golang_common
lib
trace
Package trace
Package trace
zerolog
Package zerolog provides a lightweight logging library dedicated to JSON logging.
Package zerolog provides a lightweight logging library dedicated to JSON logging.
zerolog/diode
Package diode provides a thread-safe, lock-free, non-blocking io.Writer wrapper.
Package diode provides a thread-safe, lock-free, non-blocking io.Writer wrapper.
zerolog/hlog
Package hlog provides a set of http.Handler helpers for zerolog.
Package hlog provides a set of http.Handler helpers for zerolog.
zerolog/log
Package log provides a global logger for zerolog.
Package log provides a global logger for zerolog.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL