2
0
mirror of https://github.com/edouardparis/lntop synced 2024-11-06 03:20:21 +00:00
lntop/events/events.go
2019-04-15 13:34:29 +02:00

23 lines
534 B
Go

package events
const (
PeerUpdated = "peer.updated"
BlockReceived = "block.received"
InvoiceCreated = "invoice.created"
InvoiceSettled = "invoice.settled"
ChannelPending = "channel.pending"
ChannelActive = "channel.active"
ChannelInactive = "channel.inactive"
ChannelBalanceUpdated = "channel.balance.updated"
WalletBalanceUpdated = "wallet.balance.updated"
)
type Event struct {
Type string
ID string
}
func New(kind string) *Event {
return &Event{Type: kind}
}