truss icon indicating copy to clipboard operation
truss copied to clipboard

How to produce multiple proto

Open jin-liu-1234 opened this issue 3 years ago • 2 comments

How to produce multiple proto services

jin-liu-1234 avatar Dec 03 '20 04:12 jin-liu-1234

image

image

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

jin-liu-1234 avatar Dec 03 '20 04:12 jin-liu-1234

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

zaquestion avatar Dec 03 '20 07:12 zaquestion