app

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewYgoApp

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

NewYgoApp 初始化App

Types

type YgoApp

type YgoApp struct {
	// 实现接口
	contract.App
	// contains filtered or unexported fields
}

func (YgoApp) AppFolder added in v1.0.0

func (app YgoApp) AppFolder() string

AppFolder 定义项目源码路径

func (YgoApp) AppID

func (app YgoApp) AppID() string

func (YgoApp) BaseFolder

func (app YgoApp) BaseFolder() string

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

func (YgoApp) CommandFolder

func (app YgoApp) CommandFolder() string

CommandFolder 定义业务定义的命令

func (YgoApp) ConfigFolder

func (app YgoApp) ConfigFolder() string

ConfigFolder 表示配置文件地址

func (YgoApp) ConsoleFolder

func (app YgoApp) ConsoleFolder() string

func (YgoApp) DeployFolder added in v1.0.0

func (app YgoApp) DeployFolder() string

DeployFolder 定义测试需要的信息

func (YgoApp) HttpFolder

func (app YgoApp) HttpFolder() string

func (*YgoApp) LoadAppConfig

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

func (YgoApp) LogFolder

func (app YgoApp) LogFolder() string

LogFolder 表示日志存放地址

func (YgoApp) MiddlewareFolder

func (app YgoApp) MiddlewareFolder() string

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

func (YgoApp) ProviderFolder

func (app YgoApp) ProviderFolder() string

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

func (YgoApp) RuntimeFolder

func (app YgoApp) RuntimeFolder() string

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

func (YgoApp) StorageFolder

func (app YgoApp) StorageFolder() string

func (YgoApp) TestFolder

func (app YgoApp) TestFolder() string

TestFolder 定义测试需要的信息

func (YgoApp) Version

func (app YgoApp) Version() string

Version 实现版本

type YgoAppProvider

type YgoAppProvider struct {
	BaseFolder string
}

func (*YgoAppProvider) Boot

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

Boot 启动调用

func (*YgoAppProvider) IsDefer

func (h *YgoAppProvider) IsDefer() bool

IsDefer 是否延迟初始化

func (*YgoAppProvider) Name

func (h *YgoAppProvider) Name() string

Name 获取字符串凭证

func (*YgoAppProvider) Params

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

Params 获取初始化参数

func (*YgoAppProvider) Register

func (h *YgoAppProvider) 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