refactor_user_ms

module
v0.0.0-...-8e2a50a Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: BSD-3-Clause

README

Refactor user_ms

This repository is a refactor of user_ms repository, I just want to apply my new learning and compare to my old self so I keep old repository and create a new one

Todo

Re-Implement User service

Re-Implement Authentication service

Intergrate between two services

Make structure for application to easy to implement new gRPC server and HTTP server

Run gRPC and HTTP same port

Implement and support multiple logger such as zap, logrus, ...

Implement and support multiple database driver or ORM such as gorm, ent, pg, ...

Log all error in service and repository

All knowledge is gathered on the internet

https://cloud.google.com/apis/design/errors

https://jbrandhorst.com/post/grpc-errors/

https://mycodesmells.com/post/grpc-gateway-error-handler

https://medium.com/@apzuk3/input-validation-in-golang-bc24cdec1835

https://grpc-ecosystem.github.io/grpc-gateway/docs/tutorials/adding_annotations/

https://github.com/johanbrandhorst/grpc-gateway-boilerplate

https://github.com/philips/grpc-gateway-example/blob/master/cmd/serve.go#L51

Directories

Path Synopsis
cmd
internal
proto
gen/go/authen/v1
Package authv1 is a reverse proxy.
Package authv1 is a reverse proxy.
gen/go/user/v1
Package userv1 is a reverse proxy.
Package userv1 is a reverse proxy.

Jump to

Keyboard shortcuts

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