Documentation ¶
Index ¶
- func NewHeroApp(params ...interface{}) (interface{}, error)
- type HeroApp
- func (app *HeroApp) AppFolder() string
- func (app HeroApp) AppID() string
- func (app HeroApp) BaseFolder() string
- func (app HeroApp) CommandFolder() string
- func (app HeroApp) ConfigFolder() string
- func (app HeroApp) ConsoleFolder() string
- func (app HeroApp) DeployFolder() string
- func (app HeroApp) HttpFolder() string
- func (app *HeroApp) LoadAppConfig(kv map[string]string)
- func (app HeroApp) LogFolder() string
- func (app HeroApp) MiddlewareFolder() string
- func (app HeroApp) ProviderFolder() string
- func (app HeroApp) RuntimeFolder() string
- func (app HeroApp) StorageFolder() string
- func (app HeroApp) TestFolder() string
- func (app HeroApp) Version() string
- type HeroAppProvider
- func (h *HeroAppProvider) Boot(container framework.Container) error
- func (h *HeroAppProvider) IsDefer() bool
- func (h *HeroAppProvider) Name() string
- func (h *HeroAppProvider) Params(container framework.Container) []interface{}
- func (h *HeroAppProvider) Register(container framework.Container) framework.NewInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HeroApp ¶
type HeroApp struct {
// contains filtered or unexported fields
}
HeroApp 代表hero框架的App实现
func (HeroApp) BaseFolder ¶
BaseFolder 表示基础目录,可以代表开发场景的目录,也可以代表运行时候的目录
func (HeroApp) ConsoleFolder ¶
func (HeroApp) HttpFolder ¶
func (*HeroApp) LoadAppConfig ¶
LoadAppConfig 加载配置map
func (HeroApp) MiddlewareFolder ¶
MiddlewareFolder 定义业务自己定义的中间件
func (HeroApp) ProviderFolder ¶
ProviderFolder 定义业务自己的服务提供者地址
func (HeroApp) StorageFolder ¶
type HeroAppProvider ¶
type HeroAppProvider struct {
BaseFolder string
}
HeroAppProvider 提供App的具体实现方法
func (*HeroAppProvider) Boot ¶
func (h *HeroAppProvider) Boot(container framework.Container) error
Boot 启动调用
func (*HeroAppProvider) Params ¶
func (h *HeroAppProvider) Params(container framework.Container) []interface{}
Params 获取初始化参数
func (*HeroAppProvider) Register ¶
func (h *HeroAppProvider) Register(container framework.Container) framework.NewInstance
Register 注册HeroApp方法
Click to show internal directories.
Click to hide internal directories.