aboutsummaryrefslogtreecommitdiff
path: root/event_string.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <alexander@kiryukhin.su>2019-04-04 22:56:53 +0300
committerAlexander Kiryukhin <alexander@kiryukhin.su>2019-04-04 22:56:53 +0300
commitc691d422395cb72283512d8956a255db10b70b44 (patch)
treec913d176c23495a8aa82ecc98089de10074c0929 /event_string.go
parent04db7b633980e7c39e582479ea41608907aa45b2 (diff)
v0.4.3v0.4.3
Added: - Hooks for lifecycle events Fixed: - Close errors channel - Small fixes
Diffstat (limited to 'event_string.go')
-rw-r--r--event_string.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/event_string.go b/event_string.go
new file mode 100644
index 0000000..05f1b7a
--- /dev/null
+++ b/event_string.go
@@ -0,0 +1,29 @@
+// Code generated by "stringer -type=Event"; DO NOT EDIT.
+
+package rutina
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[EventRoutineStart-0]
+ _ = x[EventRoutineStop-1]
+ _ = x[EventRoutineComplete-2]
+ _ = x[EventRoutineFail-3]
+ _ = x[EventAppStop-4]
+ _ = x[EventAppComplete-5]
+ _ = x[EventAppFail-6]
+}
+
+const _Event_name = "EventRoutineStartEventRoutineStopEventRoutineCompleteEventRoutineFailEventAppStopEventAppCompleteEventAppFail"
+
+var _Event_index = [...]uint8{0, 17, 33, 53, 69, 81, 97, 109}
+
+func (i Event) String() string {
+ if i < 0 || i >= Event(len(_Event_index)-1) {
+ return "Event(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _Event_name[_Event_index[i]:_Event_index[i+1]]
+}