migrations

package
v1.7.3 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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChannelStateMigrations

func GetChannelStateMigrations(selfPeer peer.ID, cidLists cidlists.CIDLists) (versioning.VersionedMigrationList, error)

GetChannelStateMigrations returns a migration list for the channel states

func GetMigrateChannelState0To1

func GetMigrateChannelState0To1(selfPeer peer.ID) func(*v0.ChannelState) (*v1.ChannelState, error)

GetMigrateChannelState0To1 returns a conversion function for migrating v0 channel state to v1

func GetMigrateChannelState1To2

func GetMigrateChannelState1To2(cidLists cidlists.CIDLists) func(*v1.ChannelState) (*internal.ChannelState, error)

GetMigrateChannelState1To2 returns a conversion function for migrating v1 channel state to v2 channel state

func MigrateEncodedVoucher0To1

func MigrateEncodedVoucher0To1(oldV v0.EncodedVoucher) internal.EncodedVoucher

MigrateEncodedVoucher0To1 converts a tuple encoded voucher to a map encoded voucher

func MigrateEncodedVoucherResult0To1

func MigrateEncodedVoucherResult0To1(oldV v0.EncodedVoucherResult) internal.EncodedVoucherResult

MigrateEncodedVoucherResult0To1 converts a tuple encoded voucher to a map encoded voucher

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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