Skip to content

Commit

Permalink
Add String() method to Topic.
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault authored and vyzo committed Aug 11, 2020
1 parent 769831b commit c5ece1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ type Topic struct {
closed bool
}

// String returns the topic associated with t
func (t *Topic) String() string {
return t.topic
}

// EventHandler creates a handle for topic specific events
// Multiple event handlers may be created and will operate independently of each other
func (t *Topic) EventHandler(opts ...TopicEventHandlerOpt) (*TopicEventHandler, error) {
Expand Down

0 comments on commit c5ece1d

Please sign in to comment.