persistence

package
v8.4.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2017 License: BSD-3-Clause Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL