app

package
v1.0.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BootstrapSet = wire.NewSet(wire.Struct(new(Bootstrap), "*"))

BootstrapSet 注入Bootstrap

Functions

func Run

func Run() error

Run 启动服务并监听退出信号

Types

type Bootstrap

type Bootstrap struct {
	Nacos  *nacos.NacosInstance
	Rabbit *rabbit.RabbitInstance
	// contains filtered or unexported fields
}

Bootstrap 注入器(用于初始化完成之后的引用)

func BuildInjector

func BuildInjector() (*Bootstrap, func(), error)

BuildInjector init kratos application.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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