Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { // inject main.ServiceImpl1 pointer to Service interface with proxy wrapper ServiceImpl1 ServiceImpl1IOCInterface `singleton:""` // inject main.ServiceImpl2 pointer to Service interface with proxy wrapper ServiceImpl2 ServiceImpl2IOCInterface `singleton:""` }
func GetAppSingleton ¶
type AppIOCInterface ¶
type AppIOCInterface interface {
Run()
}
func GetAppIOCInterfaceSingleton ¶
func GetAppIOCInterfaceSingleton() (AppIOCInterface, error)
type ServiceImpl1 ¶
type ServiceImpl1 struct {
ServiceImpl2 ServiceImpl2IOCInterface `singleton:""`
}
func GetServiceImpl1Singleton ¶
func GetServiceImpl1Singleton() (*ServiceImpl1, error)
func (*ServiceImpl1) GetHelloString ¶
func (s *ServiceImpl1) GetHelloString(name string) string
type ServiceImpl1IOCInterface ¶
func GetServiceImpl1IOCInterfaceSingleton ¶
func GetServiceImpl1IOCInterfaceSingleton() (ServiceImpl1IOCInterface, error)
type ServiceImpl2 ¶
type ServiceImpl2 struct { }
func GetServiceImpl2Singleton ¶
func GetServiceImpl2Singleton() (*ServiceImpl2, error)
func (*ServiceImpl2) GetHelloString ¶
func (s *ServiceImpl2) GetHelloString(name string) string
type ServiceImpl2IOCInterface ¶
func GetServiceImpl2IOCInterfaceSingleton ¶
func GetServiceImpl2IOCInterfaceSingleton() (ServiceImpl2IOCInterface, error)
type ThisApp ¶
type ThisApp struct { }
func (*ThisApp) This ¶
func (t *ThisApp) This() AppIOCInterface
type ThisServiceImpl1 ¶
type ThisServiceImpl1 struct { }
func (*ThisServiceImpl1) This ¶
func (t *ThisServiceImpl1) This() ServiceImpl1IOCInterface
type ThisServiceImpl2 ¶
type ThisServiceImpl2 struct { }
func (*ThisServiceImpl2) This ¶
func (t *ThisServiceImpl2) This() ServiceImpl2IOCInterface
Click to show internal directories.
Click to hide internal directories.