Documentation
¶
Index ¶
- func NewGocoreApp(params ...interface{}) (interface{}, error)
- type GocoreApp
- func (app *GocoreApp) AppFolder() string
- func (app GocoreApp) AppId() string
- func (app GocoreApp) BaseFolder() string
- func (app GocoreApp) CommandFolder() string
- func (app GocoreApp) ConfigFolder() string
- func (app GocoreApp) ConsoleFolder() string
- func (app GocoreApp) HttpFolder() string
- func (app GocoreApp) LoadAppConfig(kv map[string]string)
- func (app GocoreApp) LogFolder() string
- func (app GocoreApp) MiddlewareFolder() string
- func (app GocoreApp) ProviderFolder() string
- func (app GocoreApp) RuntimeFolder() string
- func (app GocoreApp) StorageFolder() string
- func (app GocoreApp) TestFolder() string
- func (app GocoreApp) Version() string
- type GocoreAppProvider
- func (p *GocoreAppProvider) Boot(container framework.Container) error
- func (p *GocoreAppProvider) IsDefer() bool
- func (p *GocoreAppProvider) Name() string
- func (p *GocoreAppProvider) Params(container framework.Container) []interface{}
- func (p *GocoreAppProvider) Register(container framework.Container) framework.NewInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGocoreApp ¶
func NewGocoreApp(params ...interface{}) (interface{}, error)
Types ¶
type GocoreApp ¶
type GocoreApp struct {
// contains filtered or unexported fields
}
GocoreApp 代表gocore框架的app实现
func (GocoreApp) BaseFolder ¶
func (GocoreApp) CommandFolder ¶
func (GocoreApp) ConsoleFolder ¶
func (GocoreApp) HttpFolder ¶
func (GocoreApp) LoadAppConfig ¶
LoadAppConfig 加载配置文件map
func (GocoreApp) MiddlewareFolder ¶
func (GocoreApp) ProviderFolder ¶
ProviderFolder 定义业务自己的服务提供者地址
func (GocoreApp) RuntimeFolder ¶
func (GocoreApp) StorageFolder ¶
func (GocoreApp) TestFolder ¶
type GocoreAppProvider ¶
type GocoreAppProvider struct {
BaseFolder string
}
GocoreAppProvider 提供了App的具体实现方法
func (*GocoreAppProvider) Boot ¶
func (p *GocoreAppProvider) Boot(container framework.Container) error
func (*GocoreAppProvider) IsDefer ¶
func (p *GocoreAppProvider) IsDefer() bool
func (*GocoreAppProvider) Name ¶
func (p *GocoreAppProvider) Name() string
func (*GocoreAppProvider) Params ¶
func (p *GocoreAppProvider) Params(container framework.Container) []interface{}
func (*GocoreAppProvider) Register ¶
func (p *GocoreAppProvider) Register(container framework.Container) framework.NewInstance
Click to show internal directories.
Click to hide internal directories.