Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to produce multiple proto #318

Open
jin-liu-1234 opened this issue Dec 3, 2020 · 2 comments
Open

How to produce multiple proto #318

jin-liu-1234 opened this issue Dec 3, 2020 · 2 comments

Comments

@jin-liu-1234
Copy link

How to produce multiple proto services

@jin-liu-1234
Copy link
Author

image

image

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

@zaquestion
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants