github.com/storacha/go-ucanto@v0.7.2/examples/retrieval/README.md (about)

     1  # Retrieval Server Example
     2  
     3  This example demonstrates how a retrieval server works. You can use the client to fetch the following hashes:
     4  
     5  * `zQmWvQxTqbG2Z9HPJgG57jjwR154cKhbtJenbyYTWkjgF3e`
     6  * `zQmY7Bpsk9Qvorkx1R47bnFwWFtTTVanL1gELhq31siJVJT`
     7  * `zQmTpxKkDpsHrEKwSVN4WteuWPmHehswVRww7zvyfotopzo`
     8  
     9  ## Getting started
    10  
    11  Start the server:
    12  
    13  ```sh
    14  go run ./server
    15  ```
    16  
    17  Retrieve some data:
    18  
    19  ```sh
    20  go run ./client zQmWvQxTqbG2Z9HPJgG57jjwR154cKhbtJenbyYTWkjgF3e
    21  ```
    22  
    23  You can make a byte range request like:
    24  
    25  ```sh
    26  go run ./client zQmWvQxTqbG2Z9HPJgG57jjwR154cKhbtJenbyYTWkjgF3e 0 4
    27  ```