Documentation
¶
Index ¶
- func GetChannelStateMigrations(selfPeer peer.ID, cidLists cidlists.CIDLists) (versioning.VersionedMigrationList, error)
- func GetMigrateChannelState0To1(selfPeer peer.ID) func(*v0.ChannelState) (*v1.ChannelState, error)
- func GetMigrateChannelState1To2(cidLists cidlists.CIDLists) func(*v1.ChannelState) (*internal.ChannelState, error)
- func MigrateEncodedVoucher0To1(oldV v0.EncodedVoucher) internal.EncodedVoucher
- func MigrateEncodedVoucherResult0To1(oldV v0.EncodedVoucherResult) internal.EncodedVoucherResult
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 ¶ added in v1.2.0
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.
Click to show internal directories.
Click to hide internal directories.