Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is responsible to load from the original end-developer's main controller's value and re-store the persistence data by scanning the original. It stores and sets to each new controller the optional data that should be shared among all requests.
func Load ¶
func Load(typ reflect.Type, val reflect.Value) *Controller
Load scans and load for persistence data based on the `iris:"persistence"` tag.
The type is the controller's Type. the "val" is the original end-developer's controller's Value. Returns nil if no persistence data to store found.
func (*Controller) Handle ¶
func (pc *Controller) Handle(c reflect.Value)
Handle re-stores the persistence data at the current controller.
Click to show internal directories.
Click to hide internal directories.