migrations

package
v0.0.0-...-75360cb Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0, MIT Imports: 12 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) (err error)

Jump to

Keyboard shortcuts

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