retrieval/

directory
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2025 License: Apache-2.0, MIT

README

Retrieval Server Example

This example demonstrates how a retrieval server works. You can use the client to fetch the following hashes:

  • zQmWvQxTqbG2Z9HPJgG57jjwR154cKhbtJenbyYTWkjgF3e
  • zQmY7Bpsk9Qvorkx1R47bnFwWFtTTVanL1gELhq31siJVJT
  • zQmTpxKkDpsHrEKwSVN4WteuWPmHehswVRww7zvyfotopzo

Getting started

Start the server:

go run ./server

Retrieve some data:

go run ./client zQmWvQxTqbG2Z9HPJgG57jjwR154cKhbtJenbyYTWkjgF3e

You can make a byte range request like:

go run ./client zQmWvQxTqbG2Z9HPJgG57jjwR154cKhbtJenbyYTWkjgF3e 0 4

Directories

Path Synopsis
capabilities

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL