revel: github.com/revel/revel/model Index | Files

package model

import "github.com/revel/revel/model"

Index

Package Files

revel_container.go revel_controller.go revel_paths.go revel_unit.go

type RevelContainer Uses

type RevelContainer struct {
    Controller RevelController
    Paths      RevelPaths
}

The single instance object that has the config populated to it

type RevelController Uses

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 Uses

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 Uses

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 Uses

type RevelUnitList []*RevelUnit

type RevelUnitType Uses

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

Package model imports 1 packages (graph) and is imported by 5 packages. Updated 2020-08-15. Refresh now. Tools for package owners.