model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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