apps

package
v0.0.0-...-553a587 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HostService hosts.Service
	ImplApps    = map[string]ImplService{}
	GinApps     = map[string]GinService{}
)

ioc 容器层: 管理所有的服务实例对象 hostService 注册过来,才会有具体的实例;服务启动时注册

Functions

func GetImpl

func GetImpl(name string) interface{}

func InitGin

func InitGin(r gin.IRouter)

func InitImpl

func InitImpl()

func LoadedGinApps

func LoadedGinApps() (names []string)

返回加载的app有哪些

func RegistroyGin

func RegistroyGin(svc GinService)

func RegistroyImpl

func RegistroyImpl(svc ImplService)

Types

type GinService

type GinService interface {
	Registroy(r gin.IRouter)
	Config()
	Name() string
}

注册gin编写的handler

type ImplService

type ImplService interface {
	Config()
	Name() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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