Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Asset ¶
Asset is a function that retrieves an asset content namely the go-bindata's Asset method
type MessageHandler ¶
type MessageHandler func(w *astilectron.Window, m MessageIn) (payload interface{}, err error)
MessageHandler is a functions that handles messages
type MessageIn ¶
type MessageIn struct {
CallbackID *int `json:"callbackId,omitempty"`
Name string `json:"name"`
Payload json.RawMessage `json:"payload"`
}
MessageIn represents a message going in
type MessageOut ¶
type MessageOut struct {
CallbackID *int `json:"callbackId,omitempty"`
Name string `json:"name"`
Payload interface{} `json:"payload"`
}
MessageOut represents a message going out
type OnWait ¶
type OnWait func(a *astilectron.Astilectron, w *astilectron.Window, m *astilectron.Menu, t *astilectron.Tray, tm *astilectron.Menu) error
OnWait is a function that executes custom actions before waiting
type Options ¶
type Options struct {
Asset Asset
AstilectronOptions astilectron.Options
Debug bool
Homepage string
MenuOptions []*astilectron.MenuItemOptions
MessageHandler MessageHandler
OnWait OnWait
RestoreAssets RestoreAssets
TrayMenuOptions []*astilectron.MenuItemOptions
TrayOptions *astilectron.TrayOptions
WindowOptions *astilectron.WindowOptions
}
Options represents options
type RestoreAssets ¶
RestoreAssets is a function that restores assets namely the go-bindata's RestoreAssets method
Click to show internal directories.
Click to hide internal directories.