-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IWF-105: Rename logevent > handleevent
- Loading branch information
1 parent
397e211
commit 78e3985
Showing
4 changed files
with
33 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package handleevent | ||
|
||
import "github.com/indeedeng/iwf/gen/iwfidl" | ||
|
||
// The implementation must be lightweight, reliable and fast (less than 1s) | ||
type HandleEventFunc func(event iwfidl.IwfEvent) | ||
|
||
var Handler HandleEventFunc = DefaultHandleEventFunc | ||
|
||
func SetHandleEventFunc(handler HandleEventFunc) { | ||
Handler = handler | ||
} | ||
|
||
func DefaultHandleEventFunc(event iwfidl.IwfEvent) { | ||
// Noop by default | ||
} |
This file was deleted.
Oops, something went wrong.
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