app

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOneApp

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

Types

type OneApp

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

func (*OneApp) AppFolder

func (app *OneApp) AppFolder() string

AppFolder 代表app目录

func (*OneApp) AppID

func (oa *OneApp) AppID() string

func (*OneApp) BaseFolder

func (oa *OneApp) BaseFolder() string

BaseFolder 业务顶级路径

func (*OneApp) CommandFolder

func (oa *OneApp) CommandFolder() string

CommandFolder 定义业务定义的命令

func (*OneApp) ConfigFolder

func (oa *OneApp) ConfigFolder() string

ConfigFolder 配置文件路径

func (*OneApp) ConsoleFolder

func (oa *OneApp) ConsoleFolder() string

ConsoleFolder 命令行程序目录

func (*OneApp) HttpFolder

func (oa *OneApp) HttpFolder() string

HttpFolder http业务目录

func (*OneApp) LoadAppConfig

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

LoadAppConfig 加载配置map

func (*OneApp) LogFolder

func (oa *OneApp) LogFolder() string

func (*OneApp) MiddlewareFolder

func (oa *OneApp) MiddlewareFolder() string

MiddlewareFolder 定义业务自己的中间件

func (*OneApp) ProviderFolder

func (oa *OneApp) ProviderFolder() string

ProviderFolder 定义业务自己的服务提供者目录

func (*OneApp) RuntimeFolder

func (oa *OneApp) RuntimeFolder() string

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

func (*OneApp) StorageFolder

func (oa *OneApp) StorageFolder() string

StorageFolder 运行临时文件存储路径

func (*OneApp) TestFolder

func (oa *OneApp) TestFolder() string

TestFolder 定义测试文件目录

func (*OneApp) Version

func (oa *OneApp) Version() string

Version 实现版本

type OneAppProvider

type OneAppProvider struct {
	BaseFolder string
}

func (*OneAppProvider) Boot

func (*OneAppProvider) IsDefer

func (oa *OneAppProvider) IsDefer() bool

func (*OneAppProvider) Name

func (oa *OneAppProvider) Name() string

func (*OneAppProvider) Params

func (oa *OneAppProvider) Params(c framework.Container) []interface{}

func (*OneAppProvider) Register

Jump to

Keyboard shortcuts

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