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: 0

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