bootstrap

package
v0.6.16-2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

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 StartBase

func StartBase(reader io.Reader, fileType string) *Application

func (*Application) Bootstrap added in v0.5.1

func (app *Application) Bootstrap(options Options)

func (*Application) BootstrapAll added in v0.5.1

func (app *Application) BootstrapAll(options Options)

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(srv server.Server)

type BootstrapOptions

type BootstrapOptions struct {
	Profile              string
	ServerAddress        string
	ServerPort           uint64
	ServerName           string
	Host                 string
	LoggerDir            string
	LoggerConsole        bool
	LoggerJson           bool
	Config               config.IConfig
	MaxServerConcurrency int
}

type Options added in v0.5.0

type Options struct {
	Registry     registry.IRegistry
	Mq           mq.IClient
	Redis        *redis.RedisClient
	IdWorker     *idworker.Worker
	ConfigCenter config.IConfig
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL