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
Developing Apis to interact with Croc programmatically #673
Comments
+1 My idea was to implement a plugin for a document management systems which contacts a croc relay to retrieve a file. Is there any documentation on how to talk to the relay? |
check cli.go to see how to use croc as an API: https://github.com/schollz/croc/blob/v9.6.15/src/cli/cli.go |
I was actually hoping for something the describes the protocol between client and relay, because I do not intend to use go but php to access the relay. |
you don't need to use Go. but that file describes the protocol in Go code |
It's still difficult to collect the parts together. Most of the protocol code appears to be in https://github.com/schollz/croc/blob/v9.6.15/src/croc/croc.go but I'm still missing the overall picture for receiving a file which has been send to a relay. |
here's the overall picture on how receiving a file with croc works:
you can find the main logic for handling this process in |
Is your feature request related to a problem? Please describe.
I was thinking of developing a website where ppl could drop in their files and retrieve them from the other end using croc. This situation comes in handy for the non technical folk who might not have croc installed as a cli util. That's where a web interface would come in handy.
Describe the solution you'd like
To have croc sdk installed on the web server to interface with Croc functionality programmatically.
Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: