Skip to content

Commit 5c18012

Browse files
authored
[Event] Add GetTopic method to Event interface (#28)
1 parent df3cbdf commit 5c18012

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

event.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ type Event interface {
127127

128128
// GetOffset returns the offset of the event
129129
GetOffset() int
130+
131+
// GetTopic returns the topic of the event
132+
GetTopic() string
130133
}
131134

132135
// AbstractEvent provides a base implementation of an event
@@ -291,3 +294,8 @@ func (ae *AbstractEvent) GetLastInBatch() bool {
291294
func (ae *AbstractEvent) GetOffset() int {
292295
return 0
293296
}
297+
298+
// GetTopic returns the topic of the event
299+
func (ae *AbstractEvent) GetTopic() string {
300+
return ""
301+
}

0 commit comments

Comments
 (0)