Documentation ¶
Index ¶
- Constants
- func MergeComments(t *types.Type) []string
- func NewCorePlugin(annotation string, opts ...Opt) *corePlugin
- func NewCorePluginManager(annotation string, opts ...Opt) *pluginManager
- type AutoFillParamFunc
- type AutowiredMarker
- type BeanMarker
- type ComponentMarker
- type ControllerMarker
- type CoreMetadata
- type Field
- type Method
- type Opt
- type PostConstructMarker
- type PreDestroyMarker
- type RequestType
- type ScopeMarker
- type ServiceMarker
- type TypeMeta
Constants ¶
View Source
const ( RequestTypePath = "path" RequestTypeQuery = "query" RequestTypeHeader = "header" RequestTypeBody = "body" )
View Source
const (
ScopeTypePrototype = "prototype"
)
Variables ¶
This section is empty.
Functions ¶
func MergeComments ¶
func NewCorePlugin ¶
func NewCorePluginManager ¶
Types ¶
type AutoFillParamFunc ¶
type AutowiredMarker ¶
type AutowiredMarker struct { Required bool `marker:"required,optional"` Name string `marker:"name,optional"` }
func (AutowiredMarker) Help ¶
func (AutowiredMarker) Help() *markers.DefinitionHelp
type BeanMarker ¶
type BeanMarker struct { Value string `marker:"value,optional"` InitMethod string `marker:"initmethod,optional"` DestroyMethod string `marker:"destroymethod,optional"` }
func (BeanMarker) Help ¶
func (BeanMarker) Help() *markers.DefinitionHelp
type ComponentMarker ¶
type ComponentMarker struct {
Value string `marker:"value,optional"`
}
func (ComponentMarker) Help ¶
func (ComponentMarker) Help() *markers.DefinitionHelp
type ControllerMarker ¶
type ControllerMarker struct {
Value string `marker:"value,optional"`
}
func (ControllerMarker) Help ¶
func (ControllerMarker) Help() *markers.DefinitionHelp
type CoreMetadata ¶
type CoreMetadata struct { Name string TypeName string ControllerMarker *ControllerMarker ServiceMarker *ServiceMarker ComponentMarker *ComponentMarker BeanMarker *BeanMarker ScopeMarker *ScopeMarker PostConstructMarker *PostConstructMarker PreDestroyMarker *PreDestroyMarker Fields []*Field Methods []*Method }
type Field ¶
type Field struct { TypeMeta AutowiredMarker *AutowiredMarker }
type Method ¶
type Method struct { Name string BeanMarker *BeanMarker ScopeMarker *ScopeMarker AutowiredMarker *AutowiredMarker Params []*TypeMeta Returns []*TypeMeta }
type Opt ¶
type Opt func(*corePlugin)
func SetAutoFillParamFunc ¶
func SetAutoFillParamFunc(f AutoFillParamFunc) Opt
func SetTemplate ¶
type PostConstructMarker ¶
type PostConstructMarker struct {
MethodName string `marker:"name,optional"`
}
func (PostConstructMarker) Help ¶
func (PostConstructMarker) Help() *markers.DefinitionHelp
type PreDestroyMarker ¶
type PreDestroyMarker struct {
MethodName string `marker:"name,optional"`
}
func (PreDestroyMarker) Help ¶
func (PreDestroyMarker) Help() *markers.DefinitionHelp
type RequestType ¶
type RequestType string
type ScopeMarker ¶
type ScopeMarker struct { // singleton | prototype Value string `marker:"value,optional"` }
func (ScopeMarker) Help ¶
func (ScopeMarker) Help() *markers.DefinitionHelp
type ServiceMarker ¶
type ServiceMarker struct {
Value string `marker:"value,optional"`
}
func (ServiceMarker) Help ¶
func (ServiceMarker) Help() *markers.DefinitionHelp
Click to show internal directories.
Click to hide internal directories.