https://github.com/willscott/go-selfish-bitswap-client
A minimal bitswap client
https://github.com/willscott/go-selfish-bitswap-client
Last synced: 10 months ago
JSON representation
A minimal bitswap client
- Host: GitHub
- URL: https://github.com/willscott/go-selfish-bitswap-client
- Owner: willscott
- License: other
- Created: 2022-02-28T14:18:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T00:14:24.000Z (over 2 years ago)
- Last Synced: 2024-12-14T11:33:42.679Z (over 1 year ago)
- Language: Go
- Size: 184 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Selfish Bitswap Client
=======================
> A minimal retrieve-only bitswap client
This client implements a minimal bitswap session that allows retrieval of CIDs from a single known peer.
## Documentation
### Usage
```
import (
bitswap "github.com/willscott/go-selfish-bitswap-client"
)
session := bitswap.New(libp2p.Host, peer.ID)
defer session.Close()
bytes, err := session.Get(cid.Cid)
```
## Lead Maintainer
[willscott](https://github.com/willscott)
## Contributing
Contributions are welcome! This repository is governed by the ipfs [contributing guidelines](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md).
## License
[SPDX-License-Identifier: Apache-2.0 OR MIT](LICENSE.md)