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