Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrOrderNotFound = errors.New("order not found")
)
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { Wallet *wallet.Wallet Client *blockclient.Client ChainID int64 RouterHex string OrderChannels map[uint]chan bool DB *database.DB Bot *telebot.Bot // contains filtered or unexported fields }
func New ¶
func New(bot *telebot.Bot, wallet *wallet.Wallet, db *database.DB, chainID int64, rpcURL, routerHex string) (*Manager, error)
Returns a new order manager
func (*Manager) NotifyFailure ¶
Sends a failure message to the user
func (*Manager) NotifySuccess ¶
Sends a success message to the user
func (*Manager) RemoveOrder ¶
Removes an order from the manager
func (*Manager) StartDBOrders ¶
Add the existing database orders to the manager
Click to show internal directories.
Click to hide internal directories.