Skip to content

Commit

Permalink
Merge pull request #76 from foodora/awssub-interface-set-on-error-func
Browse files Browse the repository at this point in the history
Add setter for on error func handler
  • Loading branch information
Muharem Ismailov committed Sep 18, 2019
2 parents fc00051 + 7dbc58b commit 8b8f789
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pubsub/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ type Subscriber interface {
Err() error
// Stop will initiate a graceful shutdown of the subscriber connection.
Stop() error
// SetOnErrorFunc is a setter for a func is being called when an error occurs
SetOnErrorFunc(fn func(error))
}

// Message ...
Expand Down

0 comments on commit 8b8f789

Please sign in to comment.