
上QQ阅读APP看书,第一时间看更新
The svc subdirectory
The svc subdirectory is where the Delinkcious microservices live. Each microservice is a separate binary with its own main package. delinkcious_service is a public umbrella service that follows the API gateway (https://microservices.io/patterns/apigateway.html) pattern:
$ tree svc
svc
├── delinkcious_service
│ └── README.md
├── link_service
│ ├── link_service.go
│ └── transport.go
├── social_graph_service
│ ├── social_graph_service.go
│ └── transport.go
└── user_service
├── transport.go
└── user_service.go