-
Notifications
You must be signed in to change notification settings - Fork 26
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
Where to set the functional options API for sbot? #84
Comments
Hmm... Interesting! :) Could you give a bit more context on what you are trying to do? The list of all the available options is best looked at on this godoc page for the sbot package. The example you linked to is basically a slimmed down version of If go-sbot doesn't have the option you are looking for (I vaguely believe it does have all of them but would like to fix that if it doesn't) the code to create a peer inside another go program is exactly like that in the example. You just add the options (with the package name first) as one more argument to HTH? |
ah.. ps: |
Thanks for the extra details! I think I understand now. My question was basically: how to select the different options? Now I see that they're exposed by |
Thanks to your great docs over at dev.scuttlebutt.nz, I know that it's possible to alter the functionality of the
sbot
server using the options API (for example, in order to define a custom database mountpoint). However, I'm not sure how to do this in practice.Based on the test code in
ssb/cmd/sbotcli/simple_test.go
, my current assumption is that the options need to be defined inssb/cmd/sbotcli/main.go
prior to compilation. Is that correct? I'd be grateful for a short explanation of how to achieve this (for example, where would I inject those definitions? Infunc initClient()
or elsewhere?).Thanks in advance☺️
The text was updated successfully, but these errors were encountered: