-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* changed scanning to filter notify messages * readded multiline support * added support for notifications * fixed issues and suggestions * clarify DecodeResponse error assertions * added notification buffer and removed debug print * fixed data race * added keepalive option * only set connected to false if it's true (might fix data-race?) * added mutex * updated keepalive for the v3.3+ server releases * improved timeout * added option to set the notification buffer size * made notification write non-blocking * handle connection status threadsafe * renamed register methods * exported NotifyEvent type and fixed typo * removed redundant if * renamed NotifyEvent to NotifyCategory * fixed NotifyCategory comment * added mutex to Keepalive * added option to set a custom Keepalive interval * avoid recreating notify channel * cleaned up NotificationBuffer option * restructured keepalive and command handling * use fmt.Stringer * change work type to string * removed mutex and improved timeout * added tests * reduced timeout in tests to improve speed * clarified comment, inlined if * reverted to previous timeout
- Loading branch information
Showing
8 changed files
with
334 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.