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 RegistroyGin ¶
func RegistroyGin(svc GinService)
func RegistroyImpl ¶
func RegistroyImpl(svc ImplService)
Types ¶
type GinService ¶
注册gin编写的handler
type ImplService ¶
type ImplService interface { Config() Name() string }
Click to show internal directories.
Click to hide internal directories.