Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RetrievalPeersMigrations = versioned.BuilderList{ versioned.NewVersionedBuilder(MigrateRetrievalPeers0To1, versioning.VersionKey("1")), }
RetrievalPeersMigrations are migrations for the store local discovery list of peers we can retrieve from
Functions ¶
func MigrateRetrievalPeers0To1 ¶
func MigrateRetrievalPeers0To1(oldRps *RetrievalPeers0) (*discovery.RetrievalPeers, error)
MigrateRetrievalPeers0To1 migrates a tuple encoded list of retrieval peers to a map encoded list
Types ¶
type RetrievalPeers0 ¶
type RetrievalPeers0 struct {
Peers []migrations.RetrievalPeer0
}
RetrievalPeers0 is version 0 of RetrievalPeers
func (*RetrievalPeers0) MarshalCBOR ¶
func (t *RetrievalPeers0) MarshalCBOR(w io.Writer) error
func (*RetrievalPeers0) UnmarshalCBOR ¶
func (t *RetrievalPeers0) UnmarshalCBOR(r io.Reader) (err error)
Click to show internal directories.
Click to hide internal directories.