mirror of https://github.com/edouardparis/lntop
events: InvoiceCreated InvoiceSettled
parent
7e99c5c717
commit
51a363e04a
@ -1,3 +1,15 @@
|
||||
package events
|
||||
|
||||
type Event struct{}
|
||||
const (
|
||||
InvoiceCreated = "invoice.created"
|
||||
InvoiceSettled = "invoice.settled"
|
||||
)
|
||||
|
||||
type Event struct {
|
||||
Type string
|
||||
ID string
|
||||
}
|
||||
|
||||
func New(kind string) *Event {
|
||||
return &Event{Type: kind}
|
||||
}
|
||||
|
Loading…
Reference in New Issue