You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
426 B
17 lines
426 B
package bus
|
|
|
|
import "time"
|
|
|
|
type Event struct {
|
|
ID string // identifier
|
|
TxID string // transaction identifier
|
|
Topic string // topic name
|
|
Source string // source of the event
|
|
OccurredAt time.Time // creation time in nanoseconds
|
|
Data any // actual event data
|
|
stopPropagation func()
|
|
}
|
|
|
|
func (e *Event) StopPropagation() {
|
|
e.stopPropagation()
|
|
}
|
|
|