app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 2 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHadeApp

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

Types

type HadeApp

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

func (*HadeApp) AppPath

func (app *HadeApp) AppPath() string

base path which is the base folder

func (*HadeApp) BasePath

func (app *HadeApp) BasePath() string

base path which is the base folder

func (*HadeApp) CachePath

func (app *HadeApp) CachePath() string

func (*HadeApp) ConfigPath

func (app *HadeApp) ConfigPath() string

config folder which contains config

func (*HadeApp) ConsolePath

func (app *HadeApp) ConsolePath() string

func (*HadeApp) EnvironmentPath

func (app *HadeApp) EnvironmentPath() string

environmentPath which contain .env

func (*HadeApp) HttpPath

func (app *HadeApp) HttpPath() string

func (*HadeApp) LoadAppConfig

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

func (*HadeApp) LogPath

func (app *HadeApp) LogPath() string

logPath define logPath

func (*HadeApp) PidPath

func (app *HadeApp) PidPath() string

func (*HadeApp) StoragePath

func (app *HadeApp) StoragePath() string

storagePath define storage folder

func (*HadeApp) SwaggerPath

func (app *HadeApp) SwaggerPath() string

func (*HadeApp) Version

func (app *HadeApp) Version() string

application version

type HadeAppProvider

type HadeAppProvider struct {
	BasePath string
	// contains filtered or unexported fields
}

HadeAppProvider provide a App service, it must be singlton, and not delay

func (*HadeAppProvider) Boot

func (provider *HadeAppProvider) Boot(c framework.Container) error

Boot will called when the service instantiate

func (*HadeAppProvider) IsDefer

func (provider *HadeAppProvider) IsDefer() bool

IsDefer define whether the service instantiate when first make or register

func (*HadeAppProvider) Name

func (provider *HadeAppProvider) Name() string

/ Name define the name for this service

func (*HadeAppProvider) Params

func (provider *HadeAppProvider) Params() []interface{}

Params define the necessary params for NewInstance

func (*HadeAppProvider) Register

Register registe a new function for make a service instance

Jump to

Keyboard shortcuts

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