Documentation ¶
Index ¶
- Constants
- func DoInject()
- func Regist(name string, obj interface{})
- func Report() string
- type AfterVisitor
- type BeforeVisitor
- type Container
- type FieldMatchStrategy
- type FieldMatchStrategyMap
- type InjectFieldInfo
- type InjectTag
- type MatchStrategyComNameType
- type NameMatchStrategy
- type ObjDefination
- type ObjFactory
- type ObjInfo
- type Properties
- type TypeMatchStrategy
Constants ¶
View Source
const ( FieldMatchStrategy_NameOnly = "NameOnly" FieldMatchStrategy_TypeOnly = "TypeOnly" FieldMatchStrategy_Com_NameType = "ComNameType" DEFAULT_STRATEGY = FieldMatchStrategy_NameOnly )
View Source
const ( InjectTag_Name = "inject-name" InjectTag_Required = "inject-required" InjectTag_Strategy = "inject-strategy" InjectTagFlag_True = "true" InjectTagFlag_False = "flase" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container container of objects
func NewContainer ¶
func NewContainer() *Container
NewContainer return a container that store all the objects
type FieldMatchStrategy ¶
type FieldMatchStrategy interface {
// contains filtered or unexported methods
}
FieldMatchStrategy Interface
type FieldMatchStrategyMap ¶
type FieldMatchStrategyMap map[string]FieldMatchStrategy
FieldMatchStrategyMap map
type InjectFieldInfo ¶
type InjectFieldInfo struct {
// contains filtered or unexported fields
}
InjectFieldInfo field info
type MatchStrategyComNameType ¶
type MatchStrategyComNameType struct{}
MatchStrategyComNameType first using name, then using type
type ObjDefination ¶
type ObjDefination struct {
// contains filtered or unexported fields
}
ObjDefination obj def
type Properties ¶
Properties todo
Click to show internal directories.
Click to hide internal directories.