model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 1 Imported by: 0

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

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

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

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

type RevelUnitList []*RevelUnit

type RevelUnitType

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