package
Version:
v0.2.13
Opens a new window with list of versions in this module.
Published: Dec 1, 2021
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Event struct {
SendEvent
Hash string `json:"hash,omitempty"`
From string `json:"from,omitempty"`
Fee float64 `json:"fee,omitempty"`
FeeCoin string `json:"feeCoin,omitempty"`
Type EventType `json:"type,omitempty"`
Items []SendEvent `json:"items,omitempty"`
Error error `json:"error,omitempty"`
}
type EventConsumer interface {
Consume(event Event)
}
type EventConsumerFunc func(event Event)
type SendEvent struct {
Amount float64 `json:"amount,omitempty"`
Coin string `json:"coin,omitempty"`
To string `json:"to,omitempty"`
ToCoin string `json:"toCoin,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.