Documentation ¶
Index ¶
- func GetOrm() *persistence.OrmContext
- type Application
- func (a *Application) EnableDatabase(config persistence.BaseConfig, models ...interface{}) *Application
- func (a *Application) EnableStaticWeb(home string, asset func(string) ([]byte, error), assetNames func() []string) *Application
- func (a *Application) EnableWeb(listen string, components ...server.Component) *Application
- func (a *Application) LoadConfig(config interface{}, name string, path ...string) error
- func (a *Application) Start() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context) (instance *Application)
func (*Application) EnableDatabase ¶
func (a *Application) EnableDatabase(config persistence.BaseConfig, models ...interface{}) *Application
func (*Application) EnableStaticWeb ¶ added in v1.0.2
func (a *Application) EnableStaticWeb(home string, asset func(string) ([]byte, error), assetNames func() []string) *Application
func (*Application) EnableWeb ¶
func (a *Application) EnableWeb(listen string, components ...server.Component) *Application
func (*Application) LoadConfig ¶
func (a *Application) LoadConfig(config interface{}, name string, path ...string) error
func (*Application) Start ¶
func (a *Application) Start() (err error)
Click to show internal directories.
Click to hide internal directories.