mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-03-29 23:43:07 +00:00
Update readme
This commit is contained in:
parent
27b68f6d8f
commit
a68d92ee8c
10
README.md
10
README.md
@ -98,7 +98,7 @@ Now the module is ready for use in your project.
|
||||
|
||||
The release process is defined [here](./RELEASE.md).
|
||||
|
||||
## Usage
|
||||
## API
|
||||
|
||||
### Init
|
||||
|
||||
@ -307,4 +307,10 @@ peerId := "..."
|
||||
record, err := node.CodexPeerDebug(peerId)
|
||||
```
|
||||
|
||||
`CodexPeerDebug` is only available if you built with `-d:codex_enable_api_debug_peers=true` flag.
|
||||
`CodexPeerDebug` is only available if you built with `-d:codex_enable_api_debug_peers=true` flag.
|
||||
|
||||
### Context and cancellation
|
||||
|
||||
Go contexts are exposed only on the long-running operations as `UploadReader`, `UploadFile`, and `DownloadFile`. If the
|
||||
context is cancelled, those methods cancel the active upload or download. Short lived API calls don’t take a context
|
||||
because they usually finish before a cancellation signal could matter.
|
||||
Loading…
x
Reference in New Issue
Block a user