Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GettingStart *_GettingStart
)
Functions ¶
func NewAppConfig ¶
NewAppConfig apply application config from *gogo.AppConfig
Types ¶
type AppConfig ¶
type AppConfig struct { Domain string `json:"domain"` Model *models.Config `json:"model"` GettingStart *GettingStartConfig `json:"getting_start"` }
Application configuration specs
var (
Config *AppConfig
)
type Application ¶
func New ¶
func New(runMode, srcPath string) *Application
func (*Application) Middlewares ¶
func (app *Application) Middlewares()
Middlerwares implements gogo.Middlewarer NOTE: DO NOT change the method name, its required by gogo!
func (*Application) Resources ¶
func (app *Application) Resources()
Resources implements gogo.Resourcer NOTE: DO NOT change the method name, its required by gogo!
func (*Application) Run ¶
func (app *Application) Run()
Run runs application after registering middelwares and resources
type GettingStartConfig ¶
type GettingStartConfig struct {
Greeting string `json:"greeting"`
}
Sample application config for illustration
Click to show internal directories.
Click to hide internal directories.