├── .gitignore ├── Dockerfile ├── Gopkg.toml ├── Jenkinsfile ├── README.md ├── core ├── configs │ └── config.go ├── db │ └── database.go ├── heplers │ ├── crypto.go │ ├── lib.go │ └── response.go └── pb │ ├── objectid.proto │ └── tagger.proto ├── docker-compose.yaml ├── main.go └── services ├── gateway ├── .gitignore ├── handler │ ├── handler.go │ ├── posts.go │ └── users.go ├── main.go ├── middleware │ └── auth.go ├── routers │ └── api.go └── validator │ ├── post.go │ └── user.go ├── posts ├── .gitignore ├── handler │ └── post.go ├── main.go ├── pb │ ├── post.pb.go │ └── post.proto └── repo │ ├── post.go │ └── post_entity.go └── users ├── .gitignore ├── handler └── user.go ├── main.go ├── pb ├── user.pb.go └── user.proto └── repo ├── user.go └── user_entity.go /.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | Gopkg.lock 3 | micro-app 4 | data 5 | .env 6 | .DS_Store -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/Dockerfile -------------------------------------------------------------------------------- /Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/Gopkg.toml -------------------------------------------------------------------------------- /Jenkinsfile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/README.md -------------------------------------------------------------------------------- /core/configs/config.go: -------------------------------------------------------------------------------- 1 | package configs 2 | -------------------------------------------------------------------------------- /core/db/database.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/core/db/database.go -------------------------------------------------------------------------------- /core/heplers/crypto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/core/heplers/crypto.go -------------------------------------------------------------------------------- /core/heplers/lib.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/core/heplers/lib.go -------------------------------------------------------------------------------- /core/heplers/response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/core/heplers/response.go -------------------------------------------------------------------------------- /core/pb/objectid.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/core/pb/objectid.proto -------------------------------------------------------------------------------- /core/pb/tagger.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/core/pb/tagger.proto -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/docker-compose.yaml -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/main.go -------------------------------------------------------------------------------- /services/gateway/.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | Gopkg.lock 3 | micro-app 4 | data 5 | .env -------------------------------------------------------------------------------- /services/gateway/handler/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/gateway/handler/handler.go -------------------------------------------------------------------------------- /services/gateway/handler/posts.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/gateway/handler/posts.go -------------------------------------------------------------------------------- /services/gateway/handler/users.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/gateway/handler/users.go -------------------------------------------------------------------------------- /services/gateway/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/gateway/main.go -------------------------------------------------------------------------------- /services/gateway/middleware/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/gateway/middleware/auth.go -------------------------------------------------------------------------------- /services/gateway/routers/api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/gateway/routers/api.go -------------------------------------------------------------------------------- /services/gateway/validator/post.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/gateway/validator/post.go -------------------------------------------------------------------------------- /services/gateway/validator/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/gateway/validator/user.go -------------------------------------------------------------------------------- /services/posts/.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | Gopkg.lock 3 | micro-app 4 | data 5 | .env -------------------------------------------------------------------------------- /services/posts/handler/post.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/posts/handler/post.go -------------------------------------------------------------------------------- /services/posts/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/posts/main.go -------------------------------------------------------------------------------- /services/posts/pb/post.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/posts/pb/post.pb.go -------------------------------------------------------------------------------- /services/posts/pb/post.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/posts/pb/post.proto -------------------------------------------------------------------------------- /services/posts/repo/post.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/posts/repo/post.go -------------------------------------------------------------------------------- /services/posts/repo/post_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/posts/repo/post_entity.go -------------------------------------------------------------------------------- /services/users/.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | Gopkg.lock 3 | micro-app 4 | data 5 | .env -------------------------------------------------------------------------------- /services/users/handler/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/users/handler/user.go -------------------------------------------------------------------------------- /services/users/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/users/main.go -------------------------------------------------------------------------------- /services/users/pb/user.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/users/pb/user.pb.go -------------------------------------------------------------------------------- /services/users/pb/user.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/users/pb/user.proto -------------------------------------------------------------------------------- /services/users/repo/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/users/repo/user.go -------------------------------------------------------------------------------- /services/users/repo/user_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhuson/microservice-GRPC-Gin-Golang/HEAD/services/users/repo/user_entity.go --------------------------------------------------------------------------------