diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2020-01-12 16:40:01 +0300 |
---|---|---|
committer | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2020-01-12 16:40:01 +0300 |
commit | 837cfe3223db11bf7f5edb6ba738d3e328b80ea2 (patch) | |
tree | 8207e53a6411ea5cd9f1da96f0de9d957c7301f2 /events.go | |
parent | 01eeeaf5e136928abe75f95d58f3f9cce11c6fe6 (diff) |
Refactored
New clean API
Timeouts and restart limits
Diffstat (limited to 'events.go')
-rw-r--r-- | events.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/events.go b/events.go deleted file mode 100644 index 6159343..0000000 --- a/events.go +++ /dev/null @@ -1,22 +0,0 @@ -//go:generate stringer -type=Event -package rutina - -// Event represents lifecycle events -type Event int - -const ( - EventRoutineStart Event = iota - EventRoutineStop - EventRoutineComplete - EventRoutineError - EventAppStop - EventAppComplete - EventAppError -) - -// Hook is function that calls when event fired -// Params: -// ev Event - fired event -// r *Rutina - pointer to rutina -// rid int - ID of routine if present, 0 - otherwise -type Hook func(ev Event, r *Rutina, rid int) error |