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

Add multiple bindings #3

Closed
bzhtux opened this issue Oct 25, 2022 · 1 comment
Closed

Add multiple bindings #3

bzhtux opened this issue Oct 25, 2022 · 1 comment
Assignees
Labels

Comments

@bzhtux
Copy link
Owner

bzhtux commented Oct 25, 2022

How to get multiple service bindings for the same app ?

Without providing a service binding type, all bindings will be used

@bzhtux bzhtux self-assigned this Oct 25, 2022
@bzhtux
Copy link
Owner Author

bzhtux commented Oct 26, 2022

After some reflexions, I assume people know what bindings are required by an application. So you can use the service binding call multiple time to get multiple bindings for an app:

pgcfg.LoadConfigFromBinding("postgresql")
rediscfg.LoadConfigFromBinding("redis")

Not tested yet but that should work this way.

@bzhtux bzhtux closed this as completed Oct 26, 2022
@bzhtux bzhtux changed the title Add multiple binddings Add multiple bindings Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

1 participant