Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationRunner ¶
type ApplicationRunner struct {
Component
}
ApplicationRunner can be called automate when framework boot up
param:
- `order` define call sequence
func (*ApplicationRunner) Order ¶
func (a *ApplicationRunner) Order() int
type AutoConfigure ¶
type AutoConfigure struct {
Component
}
AutoConfigure can auto compile and inject config
param:
- `prefix` define prefix in config file
func (*AutoConfigure) Prefix ¶
func (c *AutoConfigure) Prefix() string
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component is base bean implement
param:
- `name` define bean name
type Controller ¶
type Controller struct {
Component
}
Controller is handle http request and response
param:
- `group` define prefix handler
func (*Controller) Group ¶
func (c *Controller) Group() string
type DataSourceDriver ¶ added in v1.4.3
type DataSourceDriver struct {
Component
}
DataSourceDriver used to adapter multiple type db
param:
- `type` define datasource type
- `driver` define datasource type
func (*DataSourceDriver) Driver ¶ added in v1.4.3
func (d *DataSourceDriver) Driver() string
func (*DataSourceDriver) Type ¶ added in v1.4.3
func (d *DataSourceDriver) Type() string
type FactoryBean ¶
type FactoryBean struct {
Component
}
FactoryBean can produce bean dynamic
param:
- `singleton` define factory bean produce singleton bean or not
func (*FactoryBean) IsSingleton ¶
func (f *FactoryBean) IsSingleton() bool
type FeignClient ¶
type FeignClient struct {
Component
}
func (*FeignClient) Name ¶
func (f *FeignClient) Name() string
func (*FeignClient) Path ¶
func (f *FeignClient) Path() string
func (*FeignClient) Url ¶
func (f *FeignClient) Url() string
type Filter ¶
type Filter struct {
Component
}
Filter is http servlet filter, can optimize request and response
param:
- `order` define filter sequence
- `pattern` define url matching pattern
func (*Filter) UrlPatterns ¶
type FsController ¶ added in v1.4.3
type FsController struct {
Controller
}
FsController is handle static assets
param:
- `compile` define whether to use html/template compile
func (*FsController) Compile ¶ added in v1.4.3
func (f *FsController) Compile() bool
type Repository ¶
type Repository struct {
Component
}
Repository is persistence layer
param:
- `table` define table
func (*Repository) Table ¶
func (c *Repository) Table() string
type Service ¶
type Service struct {
Component
}
Service is service layer
param:
- `service` define service name