context

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment interface {
	GetHome() fs.Path // alias for 'GetApplicationHome'
	GetBitwormholeHome() fs.Path
	GetApplicationHome() fs.Path
}

Environment 环境接口

type EnvironmentImpl

type EnvironmentImpl struct {
	markup.Component `id:"env" initMethod:"Init"`

	Context    application.Context `inject:"context"`
	AppHomeDir string              `inject:"${application.home.dir}"`
	// contains filtered or unexported fields
}

EnvironmentImpl 实现环境接口

func (*EnvironmentImpl) GetApplicationHome

func (inst *EnvironmentImpl) GetApplicationHome() fs.Path

GetApplicationHome 取应用主目录

func (*EnvironmentImpl) GetBitwormholeHome

func (inst *EnvironmentImpl) GetBitwormholeHome() fs.Path

GetBitwormholeHome 取 Bitwormhole 主目录

func (*EnvironmentImpl) GetHome

func (inst *EnvironmentImpl) GetHome() fs.Path

GetHome 取应用主目录

func (*EnvironmentImpl) Init

func (inst *EnvironmentImpl) Init() error

Init 初始化

Jump to

Keyboard shortcuts

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