Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectSingleEntity ¶
func InjectSingleEntity(s *SingleEntity)
func LoadSingleEntity ¶
func LoadSingleEntity() baseiface.ISingleton
Types ¶
type SingleEntity ¶
type SingleEntity struct { basedto.BaseEntitySingle // 以下是依赖注入的示例 // 注入的对象可以是单例、绑定、新建、无注入 //auto 通过LoadBean()方法注入 MultiAuto *multi.MultiEntity `godi:"auto"` //bind 通过BindUp()方法注入 MultiBind *multi.MultiEntity `godi:"bind"` //new 通过New()方法注入 MultiNew *multi.MultiEntity `godi:"new"` //none 不注入 MultiNone *multi.MultiEntity `godi:"none"` //single 单例; 注入的对象为简单NEW MultiSingle *multi.MultiEntity `godi:"single"` MultiBindNew *multi.MultiEntity `godi:"bind"` Id int Name string }
func FindBeanSingleEntity ¶
func FindBeanSingleEntity() *SingleEntity
func FindBeanSingleEntityOk ¶ added in v1.4.2
func FindBeanSingleEntityOk() (*SingleEntity, bool)
func NewSingleEntity ¶
func NewSingleEntity() *SingleEntity
func (SingleEntity) AutoInject ¶
func (SingleEntity) AutoInject() bool
func (SingleEntity) Autoload ¶
func (SingleEntity) Autoload() bool
func (*SingleEntity) Check ¶
func (*SingleEntity) Check()
Click to show internal directories.
Click to hide internal directories.