app

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGocoreApp

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

Types

type GocoreApp

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

GocoreApp 代表gocore框架的app实现

func (*GocoreApp) AppFolder

func (app *GocoreApp) AppFolder() string

func (GocoreApp) AppId

func (app GocoreApp) AppId() string

AppID 表示这个App的唯一ID

func (GocoreApp) BaseFolder

func (app GocoreApp) BaseFolder() string

func (GocoreApp) CommandFolder

func (app GocoreApp) CommandFolder() string

func (GocoreApp) ConfigFolder

func (app GocoreApp) ConfigFolder() string

ConfigFolder 表示配置文件地址

func (GocoreApp) ConsoleFolder

func (app GocoreApp) ConsoleFolder() string

func (GocoreApp) HttpFolder

func (app GocoreApp) HttpFolder() string

func (GocoreApp) LoadAppConfig

func (app GocoreApp) LoadAppConfig(kv map[string]string)

LoadAppConfig 加载配置文件map

func (GocoreApp) LogFolder

func (app GocoreApp) LogFolder() string

func (GocoreApp) MiddlewareFolder

func (app GocoreApp) MiddlewareFolder() string

func (GocoreApp) ProviderFolder

func (app GocoreApp) ProviderFolder() string

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

func (GocoreApp) RuntimeFolder

func (app GocoreApp) RuntimeFolder() string

func (GocoreApp) StorageFolder

func (app GocoreApp) StorageFolder() string

func (GocoreApp) TestFolder

func (app GocoreApp) TestFolder() string

func (GocoreApp) Version

func (app GocoreApp) Version() string

Version 实现版本

type GocoreAppProvider

type GocoreAppProvider struct {
	BaseFolder string
}

GocoreAppProvider 提供了App的具体实现方法

func (*GocoreAppProvider) Boot

func (p *GocoreAppProvider) Boot(container framework.Container) error

func (*GocoreAppProvider) IsDefer

func (p *GocoreAppProvider) IsDefer() bool

func (*GocoreAppProvider) Name

func (p *GocoreAppProvider) Name() string

func (*GocoreAppProvider) Params

func (p *GocoreAppProvider) Params(container framework.Container) []interface{}

func (*GocoreAppProvider) Register

Jump to

Keyboard shortcuts

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