gokrazy / rsync

gokrazy rsync
BSD 3-Clause "New" or "Revised" License
494 stars 28 forks source link

examples, docs and other things #31

Open CaledoniaProject opened 1 year ago

CaledoniaProject commented 1 year ago

Do you have examples on how to use this package as a rsync client? And it does not seem to be published on pkg.go.dev.

stapelberg commented 1 year ago

Do you have examples on how to use this package as a rsync client?

The gokr-rsync program is a receiver (downloads files). Start at https://github.com/gokrazy/rsync/blob/main/cmd/gokr-rsync/rsync.go and navigate through the code.

Or did you mean something else? In rsync, sender and receiver are the preferred terminology, as client and server can both be either sender or receiver. So, describe in as much detail as possible what you’re looking for.

And it does not seem to be published on pkg.go.dev.

But it is published on pkg.go.dev? https://pkg.go.dev/github.com/gokrazy/rsync

CaledoniaProject commented 1 year ago

Thanks, I just want to integrate this library into my code (as a client). However, I checked the document, but there isn't much thing exposed right now.

stapelberg commented 1 year ago

Yeah, we’d need a refactoring of the client bits into a library. Pull requests welcome :)