Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdaptAstilectron ¶ added in v0.5.0
type AdaptAstilectron func(a *astilectron.Astilectron)
AdaptAstilectron is a function that adapts astilectron
type AdaptRouter ¶ added in v0.5.0
type AdaptRouter func(r *httprouter.Router)
AdaptRouter is a function that adapts the router
type AdaptWindow ¶ added in v0.5.0
type AdaptWindow func(w *astilectron.Window)
AdaptWindow is a function that adapts the window
type CustomProvision ¶
CustomProvision is a function that executes custom provisioning
type MessageHandler ¶ added in v0.5.0
type MessageHandler func(w *astilectron.Window, m MessageIn)
MessageHandler is a functions that handles messages
type MessageIn ¶ added in v0.5.0
type MessageIn struct {
Name string `json:"name"`
Payload json.RawMessage `json:"payload"`
}
MessageIn represents a message going in
type MessageOut ¶ added in v0.5.0
type MessageOut struct {
Name string `json:"name"`
Payload interface{} `json:"payload"`
}
MessageOut represents a message going out
type Options ¶
type Options struct {
AdaptAstilectron AdaptAstilectron
AdaptRouter AdaptRouter
AdaptWindow AdaptWindow
AstilectronOptions astilectron.Options
BaseDirectoryPath string
CustomProvision CustomProvision
Debug bool
Homepage string
MessageHandler MessageHandler
RestoreAssets RestoreAssets
TemplateData TemplateData
WindowOptions *astilectron.WindowOptions
}
Options represents options
type RestoreAssets ¶
RestoreAssets is a function that restores assets namely the go-bindata's RestoreAssets method
Source Files
¶
- message.go
- options.go
- provisioner.go
- run.go
- server.go
Click to show internal directories.
Click to hide internal directories.