Documentation ¶
Index ¶
- func NewJadeApp(params ...interface{}) (interface{}, error)
- type JadeApp
- func (j *JadeApp) AppFolder() string
- func (j JadeApp) AppID() string
- func (j JadeApp) BaseFolder() string
- func (j JadeApp) CommandFolder() string
- func (j JadeApp) ConfigFolder() string
- func (j JadeApp) ConsoleFolder() string
- func (j JadeApp) HttpFolder() string
- func (j *JadeApp) LoadAppConfig(kv map[string]string)
- func (j JadeApp) LogFolder() string
- func (j JadeApp) MiddlewareFolder() string
- func (j JadeApp) ProviderFolder() string
- func (j JadeApp) RuntimeFolder() string
- func (j JadeApp) StorageFolder() string
- func (j JadeApp) TestFolder() string
- func (j JadeApp) Version() string
- type JadeAppProvider
- func (j *JadeAppProvider) Boot(container framework.Container) error
- func (j *JadeAppProvider) IsDefer() bool
- func (j *JadeAppProvider) Name() string
- func (j *JadeAppProvider) Params(container framework.Container) []interface{}
- func (j *JadeAppProvider) Register(container framework.Container) framework.NewInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJadeApp ¶
func NewJadeApp(params ...interface{}) (interface{}, error)
NewJadeApp 初始化 JadeApp
Types ¶
type JadeApp ¶
func (JadeApp) BaseFolder ¶
func (JadeApp) ConsoleFolder ¶
func (JadeApp) HttpFolder ¶
func (*JadeApp) LoadAppConfig ¶
func (JadeApp) MiddlewareFolder ¶
MiddlewareFolder 定义业务自己定义的中间件
func (JadeApp) ProviderFolder ¶
ProviderFolder 定义业务自己的服务提供者地址
func (JadeApp) StorageFolder ¶
type JadeAppProvider ¶
type JadeAppProvider struct {
BaseFolder string
}
func (*JadeAppProvider) Boot ¶
func (j *JadeAppProvider) Boot(container framework.Container) error
Boot 启动调用
func (*JadeAppProvider) Name ¶
func (j *JadeAppProvider) Name() string
func (*JadeAppProvider) Params ¶
func (j *JadeAppProvider) Params(container framework.Container) []interface{}
Params 获取初始化参数
func (*JadeAppProvider) Register ¶
func (j *JadeAppProvider) Register(container framework.Container) framework.NewInstance
Register 注册
Click to show internal directories.
Click to hide internal directories.