Documentation ¶
Overview ¶
Package ioc 实现控制反转功能,放置循环依赖的问题。
可注册:[APP,GIN,GRPC]
Index ¶
- func ConfigAllApps() error
- func GetAllRegisterAppsNames() (names []string)
- func GetAllRpcServiceAppsNames() (names []string)
- func GetAllSubRouterAppsNames() (names []string)
- func LoadAllRpcServer(rpcserver grpc.ServiceRegistrar) error
- func LoadAllSubRouter(rootRouter *gin.RouterGroup) error
- func Register(instance App)
- func RegisterToGin(subr SubRouter)
- func RegisterToRpc(rap RpcApp)
- type App
- type RpcApp
- type SubRouter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllRegisterAppsNames ¶
func GetAllRegisterAppsNames() (names []string)
GetAllRegisterAppsNames 获取注册成功的 APP
func GetAllRpcServiceAppsNames ¶
func GetAllRpcServiceAppsNames() (names []string)
GetAllRpcServiceAppsNames 获取注册成功的 APP
func GetAllSubRouterAppsNames ¶
func GetAllSubRouterAppsNames() (names []string)
GetAllSubRouterAppsNames 获取注册成功的 APP
func LoadAllRpcServer ¶
func LoadAllRpcServer(rpcserver grpc.ServiceRegistrar) error
LoadAllRpcServer 加载所有 rpc 注册的服务
func LoadAllSubRouter ¶
func LoadAllSubRouter(rootRouter *gin.RouterGroup) error
LoadAllSubRouter 加载所有子路由
Types ¶
Click to show internal directories.
Click to hide internal directories.