package
Version:
v0.0.0-...-36d29c1
Opens a new window with list of versions in this module.
Published: Jun 21, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
ioc的基本实现
就是实现一个对象托管容器(管理对象的一个中介)
Documentation
¶
func InitController() error
对所有的对象统一执行 初始化
对所有的对象统一执行 初始化
把所有 api handler 注册root 路由
func RegistryHttpApi(obj IocApi)
托管业务实现的类
func ShowApis() (names []string)
打印下当前已经托管的实例的名称
func ShowConntrollers() (names []string)
打印下当前已经托管的实例的名称
type IocObject interface {
Init() error
Name() string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.