bootstrap

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSentinelConfig

func ParseSentinelConfig(entity *sentinel_config.Entity, filePath string) error

Types

type Application

type Application struct {
	BootOptions   BootstrapOptions
	ServerOptions server.Options
	Registry      registry.IRegistry
	Mq            *mq.Client
	Redis         *redis.RedisClient
	IdWorker      *utils.Worker
	ConfigCenter  config.IConfig
}
var MthApplication *Application

func BootstrapAll

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

func StartBase

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

func (*Application) SentinelInit

func (app *Application) SentinelInit()

初始化Sentinel

func (*Application) ShutDown

func (app *Application) ShutDown()

func (*Application) StartConfigCenter

func (app *Application) StartConfigCenter()

func (*Application) StartDb

func (app *Application) StartDb()

func (*Application) StartLogger

func (app *Application) StartLogger()

func (*Application) StartMq

func (app *Application) StartMq(serverUrl string, connectionTimeOut int64, operationTimeOut int64) *mq.Client

func (*Application) StartRedis

func (app *Application) StartRedis() *redis.RedisClient

func (*Application) StartRegistry

func (app *Application) StartRegistry() registry.IRegistry

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

type BootstrapOptions struct {
	Profile       string
	ServerAddress string
	ServerPort    uint64
	ServerName    string
	Host          string
	LoggerDir     string
	Config        config.IConfig
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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