bootstrap

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(o Options) (err error)

Run runs the bootstrap

Types

type CustomProvision

type CustomProvision func(baseDirectoryPath string) error

CustomProvision is a function that executes custom provisioning

type Options

type Options struct {
	AstilectronOptions astilectron.Options
	BaseDirectoryPath  string
	CustomProvision    CustomProvision
	Homepage           string
	RestoreAssets      RestoreAssets
	StartLoader        StartLoader
	TemplateData       TemplateData
	WindowOptions      *astilectron.WindowOptions
}

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 StartLoader

type StartLoader func(a *astilectron.Astilectron)

StartLoader is a function that can start a loader

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