Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressEvent ¶
type AddressEvent struct { EventType EventType AccountIndex int Address string Utxos []explorer.Utxo }
func (AddressEvent) Type ¶
func (a AddressEvent) Type() EventType
type AddressObservable ¶
type Event ¶
type Event interface {
Type() EventType
}
Event are emitted through a channel during observation.
type Observable ¶
type Observable interface {
// contains filtered or unexported methods
}
Observable represent object that can be observe on the blockchain.
type Opts ¶
type Opts struct { ExplorerSvc explorer.Service IntervalInMilliseconds int Observables []Observable ErrorHandler func(err error) }
Opts defines the parameters needed for creating a crawler service with NewService method
type Service ¶
type Service interface { Start() Stop() AddObservable(observable Observable) RemoveObservable(observable Observable) IsObservingAddresses(addresses []string) bool GetEventChannel() chan Event }
Service is the interface for Crawler
func NewService ¶
NewService returns an utxoCrawelr that is ready for watch for blockchain activites. Use Start and Stop methods to manage it.
type TransactionEvent ¶
func (TransactionEvent) Type ¶
func (t TransactionEvent) Type() EventType
type TransactionObservable ¶
type TransactionObservable struct {
TxID string
}
Click to show internal directories.
Click to hide internal directories.