lnd/chainntfs/chainntfs.go
Paul Capestany ae0a28aea9 Address (most*) golint issues
* silence all golint complaints except for those caused by generated gRPC code in rpc.pb.go, as well as the OP_CHECKSEQUENCEVERIFY opcode in script_utils.go
2016-01-18 02:59:01 -08:00

28 lines
690 B
Go

package chainntnfs
import "github.com/btcsuite/btcd/wire"
// TODO(roasbeef): finish
// * multiple backends for interface
// * btcd - websockets
// * core - rpc polling or ZeroMQ
// * direct p2p
// * random bitcoin API?
// * electrum?
// * SPV bloomfilter
// * other stuff maybe...
// ChainNotifier ...
type ChainNotifier interface {
RegisterConfirmationsNotification(txid *wire.ShaHash, numConfs uint32, trigger *NotificationTrigger) error
RegisterSpendNotification(outpoint *wire.OutPoint, trigger *NotificationTrigger) error
Start() error
Stop() error
}
// NotificationTrigger ...
type NotificationTrigger struct {
TriggerChan chan struct{}
Callback func()
}