Add API Framework Revel Source Files
[iec.git] / src / foundation / api / revel / model / revel_container.go
diff --git a/src/foundation/api/revel/model/revel_container.go b/src/foundation/api/revel/model/revel_container.go
new file mode 100644 (file)
index 0000000..c3398d9
--- /dev/null
@@ -0,0 +1,14 @@
+package model
+
+import "github.com/revel/revel/utils"
+
+// The single instance object that has the config populated to it
+type RevelContainer struct {
+       Controller 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
+       }
+}