package
0.29.0-beta.rc2
Repository: https://github.com/lightninglabs/loop.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
NewFSM creates a new reservation FSM.
NewFSMFromReservation creates a new reservation FSM from an existing reservation recovered from the database.
NewManager creates a new reservation manager.
No description provided by the author
NewSQLStore creates a new SQLStore.
UseLogger uses a specified Logger to output package logging info.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
Subsystem defines the sub system name of this package.
# Variables
Confirmed is the state where the reservation tx has been confirmed.
No description provided by the author
No description provided by the author
Failed is the state where the reservation has failed.
Init is the initial state of the reservation.
Locked is the state where the reservation is locked and can't be used for instant out swaps.
OnBroadcast is the event that is triggered when the reservation tx has been broadcast.
OnConfirmed is the event that is triggered when the reservation tx has been confirmed.
OnLocked is the event that is triggered when the reservation has been locked.
OnRecover is the event that is triggered when the reservation FSM recovers from a restart.
OnServerRequest is the event that is triggered when the server requests a new reservation.
OnSpent is the event that is triggered when the reservation has been spent.
OnSwept is the event that is triggered when the reservation has been swept by the server.
OnTimedOut is the event that is triggered when the reservation has timed out.
OnUnlocked is the event that is triggered when the reservation has been unlocked.
Spent is the state where a spend tx has been confirmed.
TimedOut is the state where the reservation has timed out.
WaitForConfirmation is the state where we wait for the reservation tx to be confirmed.
# Structs
Config contains all the services that the reservation FSM needs to operate.
FSM is the state machine that manages the reservation lifecycle.
InitReservationContext contains the request parameters for a reservation.
Manager manages the reservation state machines.
Reservation holds all the necessary information for the 2-of-2 multisig reservation utxo.
SQLStore manages the reservations in the database.
# Interfaces
BaseDB is the interface that contains all the queries generated by sqlc for the reservation table and transaction functionality.
NotificationManager handles subscribing to incoming reservation subscriptions.
Querier is the interface that contains all the queries generated by sqlc for the reservation table.
Store is the interface that stores the reservations.
# Type aliases
ID is a unique identifier for a reservation.