Documentation ¶
Index ¶
- Constants
- type App
- func (a App) CacheFile(name string) (string, error)
- func (a App) ConfigFile(name string) (string, error)
- func (a App) DataFile(name string) (string, error)
- func (a App) IsDev() bool
- func (a App) Path(elem ...string) string
- func (a App) Quit()
- func (a *App) Run() error
- func (a *App) Use(engine Engine) error
- type Context
- type Embed
- type Engine
- type Func
- type Funcs
- type Hook
- type Hooks
- type Params
- type Plugin
- type Plugins
Constants ¶
View Source
const APP_MODE = "prod"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { // Config format version. Ver string `yaml:"guarki"` // App id must be unique! ID string `yaml:"id"` // App name. Name string `yaml:"name"` // App version. Version string `yaml:"version"` // App license. License string `yaml:"license"` // App log level. LogLevel string `yaml:"logLevel"` // App log. Log log.Logger // App embeds Embed *Embed Hooks Hooks Funcs Funcs // App plugins. Plugins Plugins EngineConfig map[string]interface{} `yaml:"engineConfig"` // contains filtered or unexported fields }
App!
type Params ¶
type Params map[string]interface{}
JS call params
Source Files ¶
Click to show internal directories.
Click to hide internal directories.