env

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 13 Imported by: ? modules, 0 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

View Source
const (
	//AssetPattern the pattern for the static file rout
	AssetPattern = "/assets"

	//AssetHandlerPattern the pattern for serving asset files thru handler
	AssetHandlerPattern = "/assets/*"

	//AppAssetRoot the root dir of the static asset files
	AppAssetRoot = "web/app/assets"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppEnv

type AppEnv struct {
	DS             data.Datastore
	EF             entitymodel.EntityFactory
	Services       *services.Services
	TStore         template.TStore
	Assets         http.FileSystem
	MessageLocator *msg.MessageLocator
}

AppEnv the environment

func GetAppEnv

func GetAppEnv() *AppEnv

func GetWebEnv

func GetWebEnv() *AppEnv

GetWebEnv return new initialized environment

type AppEnvContext

type AppEnvContext struct {
	echo.Context
	Env *AppEnv
}

AppEnvContext extends echo.Context to provide the application environment

func (*AppEnvContext) FormValueRequired

func (ec *AppEnvContext) FormValueRequired(formValue string) string

FormValueRequired ...

func (*AppEnvContext) RequestData

func (ec *AppEnvContext) RequestData() request.RData

RequestData get RequestData from context

Jump to

Keyboard shortcuts

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