migrations

package
v1.2.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2021 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL