Versions in this module Expand all Collapse all v1 v1.0.1 Dec 30, 2024 Changes in this version + var RevelImportPath = "github.com/revel/revel" + var RevelModulesImportPath = "github.com/revel/modules" + func AddInitEventHandler(handler EventHandler) + func FirstNonEmpty(strs ...string) string + func IsBuiltinType(name string) bool + type COMMAND int + const BUILD + const CLEAN + const NEW + const PACKAGE + const RUN + const TEST + const VERSION + type CommandConfig struct + AppName string + AppPath string + Build command.Build + BuildFlags []string + Clean command.Clean + CommandVersion *Version + FrameworkVersion *Version + GoCmd string + GoModFlags []string + GoPath string + HistoricBuildMode bool + HistoricMode bool + ImportPath string + Index COMMAND + New command.New + Package command.Package + PackageResolver func(pkgName string) error + Run command.Run + Test command.Test + Vendored bool + Verbose []bool + Version command.Version + func (c *CommandConfig) GetVerbose() (verbose bool) + func (c *CommandConfig) InitPackageResolver() + func (c *CommandConfig) SetVersions() (err error) + func (c *CommandConfig) UpdateImportPath() error + type EmbeddedTypeName struct + ImportPath string + StructName string + func (s *EmbeddedTypeName) String() string + type Error string + const ErrImportInvalid + const ErrMissingCert + const ErrMissingKey + const ErrNoApp + const ErrNoConfig + const ErrNoFiles + const ErrNoPackages + const ErrNotFound + const ErrUnableToImport + func (e Error) Error() string + type Event int + const ENGINE_BEFORE_INITIALIZED + const ENGINE_SHUTDOWN + const ENGINE_STARTED + const REVEL_AFTER_MODULES_LOADED + const REVEL_AFTER_MODULE_LOADED + const REVEL_BEFORE_MODULES_LOADED + const REVEL_BEFORE_MODULE_LOADED + const REVEL_FAILURE + const ROUTE_REFRESH_COMPLETED + const ROUTE_REFRESH_REQUESTED + const TEMPLATE_REFRESH_COMPLETED + const TEMPLATE_REFRESH_REQUESTED + type EventHandler func(typeOf Event, value interface{}) (responseOf EventResponse) + type EventResponse int + func RaiseEvent(key Event, value interface{}) (response EventResponse) + type MethodArg struct + ImportPath string + Name string + TypeExpr TypeExpr + type MethodCall struct + Line int + Names []string + Path string + type MethodSpec struct + Args []*MethodArg + Name string + RenderCalls []*MethodCall + type ModuleInfo struct + ImportPath string + Path string + type RevelCallback interface + FireEvent func(key Event, value interface{}) (response EventResponse) + PackageResolver func(pkgName string) error + func NewWrappedRevelCallback(fe func(key Event, value interface{}) (response EventResponse), ...) RevelCallback + type RevelContainer struct + AppName string + AppPath string + AppRoot string + Application struct{ ... } + BasePath string + BuildPaths struct{ ... } + CodePaths []string + ConfPaths []string + Config *config.Context + CookieDomain string + CookiePrefix string + CookieSecure bool + DevMode bool + HTTPAddr string + HTTPPort int + HTTPSsl bool + HTTPSslCert string + HTTPSslKey string + ImportPath string + MimeConfig *config.Context + ModulePathMap map[string]*ModuleInfo + PackageInfo struct{ ... } + Packaged bool + Paths struct{ ... } + RevelPath string + RunMode string + SecretStr string + SourcePath string + TemplatePaths []string + ViewsPath string + func NewRevelPaths(mode, importPath, appSrcPath string, callback RevelCallback) (rp *RevelContainer, err error) + func (rp *RevelContainer) LoadMimeConfig() (err error) + func (rp *RevelContainer) ResolveImportPath(importPath string) (string, error) + type SourceInfo struct + InitImportPaths []string + PackageMap map[string]string + StructSpecs []*TypeInfo + ValidationKeys map[string]map[int]string + func (s *SourceInfo) ControllerSpecs() []*TypeInfo + func (s *SourceInfo) Merge(srcInfo2 *SourceInfo) + func (s *SourceInfo) TestSuites() []*TypeInfo + func (s *SourceInfo) TypesThatEmbed(targetType, packageFilter string) (filtered []*TypeInfo) + type TypeExpr struct + Expr string + PkgName string + Valid bool + func NewTypeExprFromAst(pkgName string, expr ast.Expr) TypeExpr + func NewTypeExprFromData(expr, pkgName string, pkgIndex int, valid bool) TypeExpr + func (e TypeExpr) TypeName(pkgOverride string) string + type TypeInfo struct + EmbeddedTypes []*EmbeddedTypeName + ImportPath string + MethodSpecs []*MethodSpec + PackageName string + StructName string + func (s *TypeInfo) String() string + type Version struct + BuildDate string + Maintenance int + Major int + MinGoVersion string + Minor int + Prefix string + Suffix string + func ParseVersion(version string) (v *Version, err error) + func (v *Version) CompatibleFramework(c *CommandConfig) error + func (v *Version) MajorNewer(o *Version) bool + func (v *Version) MinorNewer(o *Version) bool + func (v *Version) Newer(o *Version) bool + func (v *Version) ParseVersion(version string) (err error) + func (v *Version) String() string + func (v *Version) VersionString() string + type WrappedRevelCallback struct + FireEventFunction func(key Event, value interface{}) (response EventResponse) + ImportFunction func(pkgName string) error + func (w *WrappedRevelCallback) FireEvent(key Event, value interface{}) (response EventResponse) + func (w *WrappedRevelCallback) PackageResolver(pkgName string) error