apps

package
v0.0.0-...-6c41ede Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package apps IOC层

Index

Constants

This section is empty.

Variables

View Source
var (
	HostService host.Service
)

Functions

func GetImpl

func GetImpl(name string) interface{}

GetImpl 如果指定了具体类型, 就导致没增加一种类型, 多一个Get方法 func GetHostImpl(name string) host.Service

func InitApps

func InitApps()

func InitGin

func InitGin(r gin.IRouter)

func LoadedGinApps

func LoadedGinApps() (names []string)

LoadedGinApps 已经加载完成的Gin App有哪些

func RegistryGin

func RegistryGin(svc GinService)

func RegistryImpl

func RegistryImpl(svc ImplService)

RegistryImpl 服务实例注册到svc map当中

Types

type GinService

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

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