Versions in this module Expand all Collapse all v0 v0.4.11 Apr 17, 2023 v0.4.1 Apr 3, 2023 Changes in this version + const SchemaBitswap + type BitswapPayload struct + Addrs []Multiaddr + AdvisoryTTL *Duration + ID *peer.ID + Keys []CID + Timestamp *Time + type CID struct + func (c *CID) MarshalJSON() ([]byte, error) + func (c *CID) UnmarshalJSON(b []byte) error + type Duration struct + func (d *Duration) MarshalJSON() ([]byte, error) + func (d *Duration) UnmarshalJSON(b []byte) error + type Multiaddr struct + func (m *Multiaddr) UnmarshalJSON(b []byte) error + type ProviderResponse interface + GetProtocol func() string + GetSchema func() string + type ReadBitswapProviderRecord struct + Addrs []Multiaddr + ID *peer.ID + Protocol string + Schema string + func (*ReadBitswapProviderRecord) IsReadProviderRecord() + func (rbpr *ReadBitswapProviderRecord) GetProtocol() string + func (rbpr *ReadBitswapProviderRecord) GetSchema() string + type ReadProviderRecord interface + IsReadProviderRecord func() + type ReadProvidersResponse struct + Providers []ProviderResponse + func (r *ReadProvidersResponse) UnmarshalJSON(b []byte) error + type Time struct + func (t *Time) MarshalJSON() ([]byte, error) + func (t *Time) UnmarshalJSON(b []byte) error + type UnknownProviderRecord struct + Bytes []byte + Protocol string + Schema string + func (u *UnknownProviderRecord) GetProtocol() string + func (u *UnknownProviderRecord) GetSchema() string + func (u *UnknownProviderRecord) IsReadProviderRecord() + func (u *UnknownProviderRecord) UnmarshalJSON(b []byte) error + func (u UnknownProviderRecord) IsWriteProviderRecord() + func (u UnknownProviderRecord) MarshalJSON() ([]byte, error) + type WriteBitswapProviderRecord struct + Payload BitswapPayload + Protocol string + RawPayload json.RawMessage + Schema string + Signature string + func (*WriteBitswapProviderRecord) IsWriteProviderRecord() + func (p *WriteBitswapProviderRecord) IsSigned() bool + func (p *WriteBitswapProviderRecord) Sign(peerID peer.ID, key crypto.PrivKey) error + func (p *WriteBitswapProviderRecord) UnmarshalJSON(b []byte) error + func (p *WriteBitswapProviderRecord) Verify() error + type WriteBitswapProviderRecordResponse struct + AdvisoryTTL *Duration + Protocol string + Schema string + func (wbprr *WriteBitswapProviderRecordResponse) GetProtocol() string + func (wbprr *WriteBitswapProviderRecordResponse) GetSchema() string + type WriteProviderRecord interface + IsWriteProviderRecord func() + type WriteProvidersRequest struct + Providers []WriteProviderRecord + func (r *WriteProvidersRequest) UnmarshalJSON(b []byte) error + type WriteProvidersResponse struct + ProvideResults []ProviderResponse + func (r *WriteProvidersResponse) UnmarshalJSON(b []byte) error