Documentation ¶
Index ¶
- func NewOneApp(params ...interface{}) (interface{}, error)
- type OneApp
- func (app *OneApp) AppFolder() string
- func (oa *OneApp) AppID() string
- func (oa *OneApp) BaseFolder() string
- func (oa *OneApp) CommandFolder() string
- func (oa *OneApp) ConfigFolder() string
- func (oa *OneApp) ConsoleFolder() string
- func (oa *OneApp) HttpFolder() string
- func (app *OneApp) LoadAppConfig(kv map[string]string)
- func (oa *OneApp) LogFolder() string
- func (oa *OneApp) MiddlewareFolder() string
- func (oa *OneApp) ProviderFolder() string
- func (oa *OneApp) RuntimeFolder() string
- func (oa *OneApp) StorageFolder() string
- func (oa *OneApp) TestFolder() string
- func (oa *OneApp) Version() string
- type OneAppProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OneApp ¶
type OneApp struct {
// contains filtered or unexported fields
}
func (*OneApp) LoadAppConfig ¶
LoadAppConfig 加载配置map
func (*OneApp) MiddlewareFolder ¶
MiddlewareFolder 定义业务自己的中间件
func (*OneApp) ProviderFolder ¶
ProviderFolder 定义业务自己的服务提供者目录
type OneAppProvider ¶
type OneAppProvider struct {
BaseFolder string
}
func (*OneAppProvider) IsDefer ¶
func (oa *OneAppProvider) IsDefer() bool
func (*OneAppProvider) Name ¶
func (oa *OneAppProvider) Name() string
func (*OneAppProvider) Params ¶
func (oa *OneAppProvider) Params(c framework.Container) []interface{}
func (*OneAppProvider) Register ¶
func (oa *OneAppProvider) Register(c framework.Container) framework.NewInstance
Click to show internal directories.
Click to hide internal directories.