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