app

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJadeApp

func NewJadeApp(params ...interface{}) (interface{}, error)

NewJadeApp 初始化 JadeApp

Types

type JadeApp

type JadeApp struct {
	contract.App
	// contains filtered or unexported fields
}

func (*JadeApp) AppFolder

func (j *JadeApp) AppFolder() string

func (JadeApp) AppID

func (j JadeApp) AppID() string

func (JadeApp) BaseFolder

func (j JadeApp) BaseFolder() string

func (JadeApp) CommandFolder

func (j JadeApp) CommandFolder() string

CommandFolder 定义业务定义的命令

func (JadeApp) ConfigFolder

func (j JadeApp) ConfigFolder() string

ConfigFolder 表示配置文件地址

func (JadeApp) ConsoleFolder

func (j JadeApp) ConsoleFolder() string

func (JadeApp) HttpFolder

func (j JadeApp) HttpFolder() string

func (*JadeApp) LoadAppConfig

func (j *JadeApp) LoadAppConfig(kv map[string]string)

func (JadeApp) LogFolder

func (j JadeApp) LogFolder() string

LogFolder 表示日志存放地址

func (JadeApp) MiddlewareFolder

func (j JadeApp) MiddlewareFolder() string

MiddlewareFolder 定义业务自己定义的中间件

func (JadeApp) ProviderFolder

func (j JadeApp) ProviderFolder() string

ProviderFolder 定义业务自己的服务提供者地址

func (JadeApp) RuntimeFolder

func (j JadeApp) RuntimeFolder() string

RuntimeFolder 定义业务的运行中间态信息

func (JadeApp) StorageFolder

func (j JadeApp) StorageFolder() string

func (JadeApp) TestFolder

func (j JadeApp) TestFolder() string

TestFolder 定义测试需要的信息

func (JadeApp) Version

func (j JadeApp) Version() string

type JadeAppProvider

type JadeAppProvider struct {
	BaseFolder string
}

func (*JadeAppProvider) Boot

func (j *JadeAppProvider) Boot(container framework.Container) error

Boot 启动调用

func (*JadeAppProvider) IsDefer

func (j *JadeAppProvider) IsDefer() bool

是否延迟初始化

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 注册

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL