Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IocContainter ¶
type IocContainter struct {
// contains filtered or unexported fields
}
定义一个接口 --- 对象注册表
func (*IocContainter) Get ¶
func (i *IocContainter) Get(name string) any
func (*IocContainter) GrpcSerivceRegistry ¶
func (c *IocContainter) GrpcSerivceRegistry(r *grpc.Server)
所有的对象(Grpc 接口实现) 通过对外通过grpc暴露
func (*IocContainter) Registry ¶
func (i *IocContainter) Registry(obj IocObject)
func (*IocContainter) RouteRegistry ¶
func (c *IocContainter) RouteRegistry(r gin.IRouter)
管理者所有的对象(Api Handler) 把每个 ApiHandler的路由注册给Root Router
Click to show internal directories.
Click to hide internal directories.