app

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHadeApp

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

NewHadeApp 初始化HadeApp

Types

type HadeApp

type HadeApp struct {
	// contains filtered or unexported fields
}

HadeApp 代表hade框架的App实现

func (*HadeApp) AppFolder added in v0.0.2

func (app *HadeApp) AppFolder() string

AppFolder 代表app目录

func (HadeApp) AppID added in v0.0.2

func (app HadeApp) AppID() string

AppID 表示这个App的唯一ID

func (HadeApp) BaseFolder added in v0.0.2

func (app HadeApp) BaseFolder() string

BaseFolder 表示基础目录,可以代表开发场景的目录,也可以代表运行时候的目录

func (HadeApp) CommandFolder added in v0.0.2

func (app HadeApp) CommandFolder() string

CommandFolder 定义业务定义的命令

func (HadeApp) ConfigFolder added in v0.0.2

func (app HadeApp) ConfigFolder() string

ConfigFolder 表示配置文件地址

func (HadeApp) ConsoleFolder added in v0.0.2

func (app HadeApp) ConsoleFolder() string

func (HadeApp) DeployFolder added in v1.0.0

func (app HadeApp) DeployFolder() string

DeployFolder 定义测试需要的信息

func (HadeApp) HttpFolder added in v0.0.2

func (app HadeApp) HttpFolder() string

func (*HadeApp) LoadAppConfig

func (app *HadeApp) LoadAppConfig(kv map[string]string)

LoadAppConfig 加载配置map

func (HadeApp) LogFolder added in v0.0.2

func (app HadeApp) LogFolder() string

LogFolder 表示日志存放地址

func (HadeApp) MiddlewareFolder added in v0.0.2

func (app HadeApp) MiddlewareFolder() string

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

func (HadeApp) ProviderFolder added in v0.0.2

func (app HadeApp) ProviderFolder() string

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

func (HadeApp) RuntimeFolder added in v0.0.2

func (app HadeApp) RuntimeFolder() string

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

func (HadeApp) StorageFolder added in v0.0.2

func (app HadeApp) StorageFolder() string

func (HadeApp) TestFolder added in v0.0.2

func (app HadeApp) TestFolder() string

TestFolder 定义测试需要的信息

func (HadeApp) Version

func (app HadeApp) Version() string

Version 实现版本

type HadeAppProvider

type HadeAppProvider struct {
	BaseFolder string
}

HadeAppProvider 提供App的具体实现方法

func (*HadeAppProvider) Boot

func (h *HadeAppProvider) Boot(container framework.Container) error

Boot 启动调用

func (*HadeAppProvider) IsDefer

func (h *HadeAppProvider) IsDefer() bool

IsDefer 是否延迟初始化

func (*HadeAppProvider) Name

func (h *HadeAppProvider) Name() string

Name 获取字符串凭证

func (*HadeAppProvider) Params

func (h *HadeAppProvider) Params(container framework.Container) []interface{}

Params 获取初始化参数

func (*HadeAppProvider) Register

func (h *HadeAppProvider) Register(container framework.Container) framework.NewInstance

Register 注册HadeApp方法

Jump to

Keyboard shortcuts

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