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