Logo
Explore Help
Sign In
sneak/go-ircevent
Watch 1
Star 0
Fork 0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
113 Commits 1 Branch 0 Tags
6edb7ec06ee4901b710eed56963180705ee8b306
Commit Graph
5 Commits
This Branch
This Branch
All Branches
Author SHA1 Message Date
Andrew Montgomery-Hurrell 6edb7ec06e Added unique id to callbacks so they can be referenced. Since Go doens't actually provide unique function pointers, we use the closest we can get by grabbing the pointer for the function and slapping a random int on the end. Does it guarantee there will never be a collision? No, but it makes it's pretty damn unlikely that you'll get one during the lifetime of an app unless you are generating millions and millions of callbacks and never, ever deleting them, in which case you probably have something else to worry about 2014-02-11 23:35:13 +00:00
Andrew Montgomery-Hurrell 33d8019793 Added ability to get the index of a callback in the callback registry. Ability to process events against a 'wildcard' handler 2014-02-11 21:44:29 +00:00
Andrew Montgomery-Hurrell 847ce8faa2 Make IRC logger public. No reason for disallowing overrides. 2014-02-10 19:56:16 +00:00
Andrew Montgomery-Hurrell 0b6c954b52 try to shutdown more safely so callbacks, etc don't try and use the read/write channels after they are closed 2014-02-10 19:54:07 +00:00
Andrew Montgomery-Hurrell c0e6d50e0c Added configurable timeouts and overridable version string 2014-02-09 10:20:58 +00:00
Powered by Gitea Version: 1.27.3 Page: 25ms Template: 6ms
Dark
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API