-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.go
31 lines (24 loc) · 944 Bytes
/
options.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
package bootstrap
import europi "github.com/awonak/EuroPiGo"
// BootstrapOption is a single configuration parameter passed to the Bootstrap() function
type BootstrapOption func(o *bootstrapConfig) error
type bootstrapConfig struct {
panicHandler func(e europi.Hardware, reason any)
enableDisplayLogger bool
initRandom bool
europi europi.Hardware
enableNonPicoWebSocket bool
// application
appConfig bootstrapAppConfig
// user interface
uiConfig bootstrapUIConfig
// lifecycle callbacks
onPostBootstrapConstructionFn PostBootstrapConstructionFunc
onPreInitializeComponentsFn PreInitializeComponentsFunc
onPostInitializeComponentsFn PostInitializeComponentsFunc
onBootstrapCompletedFn BootstrapCompletedFunc
onBeginDestroyFn BeginDestroyFunc
onFinishDestroyFn FinishDestroyFunc
// runtime functionality
nonPicoWSApi europi.NonPicoWSActivation
}