model

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 1 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RevelContainer

type RevelContainer struct {
	Controller RevelController
	Paths      RevelPaths
}

The single instance object that has the config populated to it.

type RevelController added in v1.0.0

type RevelController struct {
	Reuse              bool                              // True if the controllers are reused Set via revel.controller.reuse
	Stack              *utils.SimpleLockStack            // size set by revel.controller.stack,  revel.controller.maxstack
	CachedMap          map[string]*utils.SimpleLockStack // The map of reusable controllers
	CachedStackSize    int                               // The default size of each stack in CachedMap Set via revel.cache.controller.stack
	CachedStackMaxSize int                               // The max size of each stack in CachedMap Set via revel.cache.controller.maxstack
}

type RevelPaths added in v1.0.0

type RevelPaths struct {
	Import    string
	Source    string
	Base      string
	Code      []string              // Consolidated code paths
	Template  []string              // Consolidated template paths
	Config    []string              // Consolidated configuration paths
	ModuleMap map[string]*RevelUnit // The module path map
}

type RevelUnit added in v1.0.0

type RevelUnit struct {
	Name       string        // The friendly name for the unit
	Config     string        // The config file contents
	Type       RevelUnitType // The type of the unit
	Messages   string        // The messages
	BasePath   string        // The filesystem path of the unit
	ImportPath string        // The import path for the package
	Container  *RevelContainer
}

type RevelUnitList added in v1.0.0

type RevelUnitList []*RevelUnit

type RevelUnitType added in v1.0.0

type RevelUnitType int
const (
	APP    RevelUnitType = 1 // App always overrides all
	MODULE RevelUnitType = 2 // Module is next
	REVEL  RevelUnitType = 3 // Revel is last
)

Jump to

Keyboard shortcuts

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