app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 7 Imported by: 0

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 代表fcou框架的App实现

func (*HadeApp) AppFolder

func (app *HadeApp) AppFolder() string

AppFolder 代表app目录

func (HadeApp) AppID

func (app HadeApp) AppID() string

AppID 表示这个App的唯一ID

func (HadeApp) BaseFolder

func (app HadeApp) BaseFolder() string

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

func (HadeApp) CommandFolder

func (app HadeApp) CommandFolder() string

CommandFolder 定义业务定义的命令

func (HadeApp) ConfigFolder

func (app HadeApp) ConfigFolder() string

ConfigFolder 表示配置文件地址

func (HadeApp) ConsoleFolder

func (app HadeApp) ConsoleFolder() string

func (HadeApp) DeployFolder

func (app HadeApp) DeployFolder() string

DeployFolder 定义测试需要的信息

func (HadeApp) HttpFolder

func (app HadeApp) HttpFolder() string

func (*HadeApp) LoadAppConfig

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

LoadAppConfig 加载配置map

func (HadeApp) LogFolder

func (app HadeApp) LogFolder() string

LogFolder 表示日志存放地址

func (HadeApp) MiddlewareFolder

func (app HadeApp) MiddlewareFolder() string

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

func (HadeApp) ProviderFolder

func (app HadeApp) ProviderFolder() string

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

func (HadeApp) RuntimeFolder

func (app HadeApp) RuntimeFolder() string

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

func (HadeApp) StorageFolder

func (app HadeApp) StorageFolder() string

func (HadeApp) TestFolder

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