github.com/filecoin-project/lassie@v0.23.0/pkg/internal/lp2ptransports/types.ipldsch (about)

     1  # Defines the response to a query asking which transport protocols a
     2  # Storage Provider supports
     3  type Multiaddr bytes
     4  
     5  type Protocol struct {
     6    # The name of the transport protocol
     7    # Known protocols: "libp2p", "http", "https", "bitswap"
     8    Name String
     9    # The addresses of the endpoint in multiaddr format
    10    Addresses [Multiaddr]
    11  }
    12  
    13  type QueryResponse struct {
    14    Protocols [Protocol]
    15  }