Skip to content

shrimps80/gin-demo

Repository files navigation

gin-demo

Features

  • 路由中间件
    • api签名
    • 日志记录
    • Jwt
  • 参数验证
    • 模型绑定和验证
    • 自定义验证器
  • 存储
    • MySQL
    • Redis
    • MongoDB
    • ES
    • RabbitMq
  • gRPC
    • 客户端
    • 日志记录
  • cron定时任务
  • swagger

Proto

protoc -I . --go_out=plugins=grpc:. ./helloworld.proto

grpc-server

go run grpc-server/main.go

Skip sign

skip_debug=18120080

govendor

初始化vendor目录

govendor init

将GOPATH中本工程使用到的依赖包自动移动到vendor目录中

govendor add +external

swagger

http://127.0.0.1:8000/swagger/index.html

swag init

docker

$ cd docker
$ docker-compose up -d

docker ip

$ docker-machine ip

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published