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