Documentation ¶
Index ¶
- func NewYgoApp(params ...interface{}) (interface{}, error)
- type YgoApp
- func (app YgoApp) AppFolder() string
- func (app YgoApp) AppID() string
- func (app YgoApp) BaseFolder() string
- func (app YgoApp) CommandFolder() string
- func (app YgoApp) ConfigFolder() string
- func (app YgoApp) ConsoleFolder() string
- func (app YgoApp) DeployFolder() string
- func (app YgoApp) HttpFolder() string
- func (app *YgoApp) LoadAppConfig(kv map[string]string)
- func (app YgoApp) LogFolder() string
- func (app YgoApp) MiddlewareFolder() string
- func (app YgoApp) ProviderFolder() string
- func (app YgoApp) RuntimeFolder() string
- func (app YgoApp) StorageFolder() string
- func (app YgoApp) TestFolder() string
- func (app YgoApp) Version() string
- type YgoAppProvider
- func (h *YgoAppProvider) Boot(container framework.Container) error
- func (h *YgoAppProvider) IsDefer() bool
- func (h *YgoAppProvider) Name() string
- func (h *YgoAppProvider) Params(container framework.Container) []interface{}
- func (h *YgoAppProvider) Register(container framework.Container) framework.NewInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type YgoApp ¶
func (YgoApp) BaseFolder ¶
BaseFolder 表示基础目录,可以代表开发场景的目录,也可以代表运行时候的目录
func (YgoApp) ConsoleFolder ¶
func (YgoApp) DeployFolder ¶ added in v1.0.0
DeployFolder 定义测试需要的信息
func (YgoApp) HttpFolder ¶
func (*YgoApp) LoadAppConfig ¶
func (YgoApp) MiddlewareFolder ¶
MiddlewareFolder 定义业务自己定义的中间件
func (YgoApp) ProviderFolder ¶
ProviderFolder 定义业务自己的服务提供者地址
func (YgoApp) StorageFolder ¶
type YgoAppProvider ¶
type YgoAppProvider struct {
BaseFolder string
}
func (*YgoAppProvider) Boot ¶
func (h *YgoAppProvider) Boot(container framework.Container) error
Boot 启动调用
func (*YgoAppProvider) Params ¶
func (h *YgoAppProvider) Params(container framework.Container) []interface{}
Params 获取初始化参数
func (*YgoAppProvider) Register ¶
func (h *YgoAppProvider) Register(container framework.Container) framework.NewInstance
Register 注册HadeApp方法
Click to show internal directories.
Click to hide internal directories.