bootstrap

package
v0.0.0-...-39f04e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(src string) ([]byte, error)

func Run

func Run(o Options) (err error)

Run runs the bootstrap

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

type CustomProvision func(baseDirectoryPath string) error

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

type RestoreAssets func(dir, name string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL