Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
BootOptions BootstrapOptions
ServerOptions server.Options
Registry registry.IRegistry
Mq mq.IClient
Redis *redis.RedisClient
IdWorker *idworker.Worker
ConfigCenter config.IConfig
}
var MthApplication *Application
func Bootstrap ¶ added in v0.5.0
func Bootstrap(reader io.Reader, fileType string, options Options) *Application
func BootstrapAll ¶
func BootstrapAll(reader io.Reader, fileType string, options Options) *Application
func (*Application) ShutDown ¶
func (app *Application) ShutDown()
func (*Application) StartDb ¶
func (app *Application) StartDb()
func (*Application) StartLogger ¶
func (app *Application) StartLogger()
func (*Application) StartWebServer ¶
func (app *Application) StartWebServer(routerProvider func(engine *gin.Engine))
func (*Application) StartWebServerWith ¶
func (app *Application) StartWebServerWith(options server.Options, routerProvider func(engine *gin.Engine))
type BootstrapOptions ¶
Click to show internal directories.
Click to hide internal directories.