Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdaptAstilectron ¶
type AdaptAstilectron func(a *astilectron.Astilectron)
AdaptAstilectron is a function that adapts astilectron
type AdaptRouter ¶
type AdaptRouter func(r *httprouter.Router)
AdaptRouter is a function that adapts the router
type AdaptWindow ¶
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 ¶
type MessageHandler func(w *astilectron.Window, m MessageIn)
MessageHandler is a functions that handles messages
type MessageIn ¶
type MessageIn struct { Name string `json:"name"` Payload json.RawMessage `json:"payload"` }
MessageIn represents a message going in
type MessageOut ¶
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 TrayOptions *astilectron.TrayOptions TrayChan chan struct{} ResizeChan chan int TransactionChan chan uint32 MenuItemOptions []*astilectron.MenuItemOptions Wallet *spvwallet.SPVWallet }
Options represents options
type RestoreAssets ¶
RestoreAssets is a function that restores assets namely the go-bindata's RestoreAssets method
type TemplateData ¶
type TemplateData func(name string, r *http.Request, p httprouter.Params) (d interface{}, err error)
TemplateData is a function that retrieves a template's data
Click to show internal directories.
Click to hide internal directories.