Versions in this module Expand all Collapse all v0 v0.24.1 Oct 10, 2024 Changes in this version + const SchemaBitswap + const SchemaPeer + type BitswapPayload struct + Addrs []Multiaddr + AdvisoryTTL *Duration + ID *peer.ID + Keys []CID + Timestamp *Time + type BitswapRecord struct + Addrs []Multiaddr + ID *peer.ID + Protocol string + Schema string + func (br *BitswapRecord) GetSchema() string + 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 PeerRecord struct + Addrs []Multiaddr + Extra map[string]json.RawMessage + ID *peer.ID + Protocols []string + Schema string + func (pr *PeerRecord) GetSchema() string + func (pr *PeerRecord) UnmarshalJSON(b []byte) error + func (pr PeerRecord) MarshalJSON() ([]byte, error) + type Record interface + GetSchema func() string + type Time struct + func (t *Time) MarshalJSON() ([]byte, error) + func (t *Time) UnmarshalJSON(b []byte) error + type UnknownRecord struct + Bytes []byte + Schema string + func (ur *UnknownRecord) GetSchema() string + func (ur *UnknownRecord) UnmarshalJSON(b []byte) error + func (ur UnknownRecord) MarshalJSON() ([]byte, error) + type WriteBitswapRecord struct + Payload BitswapPayload + Protocol string + RawPayload json.RawMessage + Schema string + Signature string + func (p *WriteBitswapRecord) IsSigned() bool + func (p *WriteBitswapRecord) Sign(peerID peer.ID, key crypto.PrivKey) error + func (p *WriteBitswapRecord) UnmarshalJSON(b []byte) error + func (p *WriteBitswapRecord) Verify() error + func (wr *WriteBitswapRecord) GetSchema() string + type WriteBitswapRecordResponse struct + AdvisoryTTL *Duration + Protocol string + Schema string + func (r *WriteBitswapRecordResponse) GetSchema() string