-
Notifications
You must be signed in to change notification settings - Fork 3
/
runtime_lifecycle.go
59 lines (44 loc) · 1.15 KB
/
runtime_lifecycle.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package framework
import "git.golaxy.org/core/runtime"
type LifecycleRuntimeBirth interface {
Birth(ctx runtime.Context)
}
type LifecycleRuntimeInit interface {
Init(ctx runtime.Context)
}
type LifecycleRuntimeStarting interface {
Starting(ctx runtime.Context)
}
type LifecycleRuntimeStarted interface {
Started(ctx runtime.Context)
}
type LifecycleRuntimeFrameLoopBegin interface {
FrameLoopBegin(ctx runtime.Context)
}
type LifecycleRuntimeFrameUpdateBegin interface {
FrameUpdateBegin(ctx runtime.Context)
}
type LifecycleRuntimeFrameUpdateEnd interface {
FrameUpdateEnd(ctx runtime.Context)
}
type LifecycleRuntimeFrameLoopEnd interface {
FrameLoopEnd(ctx runtime.Context)
}
type LifecycleRuntimeRunCallBegin interface {
RunCallBegin(ctx runtime.Context)
}
type LifecycleRuntimeRunCallEnd interface {
RunCallEnd(ctx runtime.Context)
}
type LifecycleRuntimeRunGCBegin interface {
RunGCBegin(ctx runtime.Context)
}
type LifecycleRuntimeRunGCEnd interface {
RunGCEnd(ctx runtime.Context)
}
type LifecycleRuntimeTerminating interface {
Terminating(ctx runtime.Context)
}
type LifecycleRuntimeTerminated interface {
Terminated(ctx runtime.Context)
}