mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-02 13:33:10 +00:00
Update README
This commit is contained in:
parent
7218764de5
commit
e30c492cf8
@ -174,8 +174,6 @@ onProgress := func(read, total int, percent float64, err error) {
|
||||
cid, err := codex.UploadReader(UploadOptions{filepath: "hello.txt", onProgress: onProgress}, buf)
|
||||
```
|
||||
|
||||
Caveat: once started, the upload cannot be cancelled.
|
||||
|
||||
#### file
|
||||
|
||||
The `file` strategy allows you to upload a file on Codex using the path.
|
||||
@ -192,8 +190,6 @@ onProgress := func(read, total int, percent float64, err error) {
|
||||
cid, err := codex.UploadFile(UploadOptions{filepath: "./testdata/hello.txt", onProgress: onProgress})
|
||||
```
|
||||
|
||||
Caveat: once started, the upload cannot be cancelled.
|
||||
|
||||
#### chunks
|
||||
|
||||
The `chunks` strategy allows you to manage the upload by yourself. It requires more code
|
||||
@ -249,8 +245,6 @@ opt := DownloadStreamOptions{
|
||||
err := codex.DownloadStream(cid, opt)
|
||||
```
|
||||
|
||||
Caveat: once started, the download cannot be cancelled.
|
||||
|
||||
#### chunks
|
||||
|
||||
The `chunks` strategy allows to manage the download by yourself. It requires more code
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user