metaverse / truss

Truss helps you build go-kit microservices without having to worry about writing or maintaining boilerplate code.
Other
737 stars 144 forks source link

How to produce multiple proto #318

Open jin-liu-1234 opened 3 years ago

jin-liu-1234 commented 3 years ago

How to produce multiple proto services

jin-liu-1234 commented 3 years ago

image

image

like this, There should be two services registered, but only one

zaquestion commented 3 years ago

2 services within a single truss service isn't something we currently support. Your best bet is probably to generate the services individually. truss aikucun_activity.proto, truss aikucun_product.proto -- Then potentially if you really wanted to serve them from the same binary, you could try using a custom main.go

https://github.com/metaverse/truss/wiki/Using-a-custom-main.go-with-generated-truss-services