Documentation ¶
Overview ¶
Context contains the type Uni. An instance of this type is passed to the modules when routing the control to them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Uni ¶
type Uni struct { Modifiers map[string]interface{} Session *mgo.Session Db *mgo.Database W http.ResponseWriter Req *http.Request Path string // Path string Opt map[string]interface{} // Freshest options from database. Dat map[string]interface{} // General communication channel. Put func(...interface{}) // Just a convenience function to allow fast output to http response. Root string // Absolute path of the application. Ev iface.Event Route *lang.Route Sentence *lang.Sentence FilterCreator func(string, map[string]interface{}) iface.Filter NewModule func(string) iface.Module // contains filtered or unexported fields }
General context for the application.
func (*Uni) OriginalOpt ¶
Click to show internal directories.
Click to hide internal directories.