Documentation
¶
Overview ¶
* @Author: hugo * @Date: 2024-05-11 15:05 * @LastEditors: hugo * @LastEditTime: 2024-06-17 20:45 * @FilePath: \gotox\appx\appx.go * @Description: * * Copyright (c) 2024 by hugo, All Rights Reserved.
Index ¶
- func WithConfigMode(mode string) configx.Option
- func WithConfigPath(path string) configx.Option
- type Appx
- func (app *Appx) EnableCache() *Appx
- func (app *Appx) EnableDB(ops ...ormx.Option) *Appx
- func (app *Appx) EnableTasks(taskGenFuncs ...func() taskx.Task) *Appx
- func (app *Appx) EnableWebServer() *Appx
- func (app *Appx) MigratTables(fns ...func() error) *Appx
- func (app *Appx) RegisterServies(fns ...func() webx.Handler) *Appx
- func (app *Appx) Run()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithConfigMode ¶
func WithConfigPath ¶
Types ¶
type Appx ¶
type Appx struct {
Configx *configx.Configx
Logger logx.Logger
Cachex cachex.Cachexer
DBs *ormx.Ormx
Serverx *serverx.Serverx
ResourcexGroup *resourcex.ResourcexGroup
TaskxGroup *taskx.TaskxGroup
}
func (*Appx) EnableCache ¶
func (*Appx) EnableWebServer ¶
func (*Appx) MigratTables ¶
Click to show internal directories.
Click to hide internal directories.