mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 03:01:03 +01:00
4fb78bbcd9
Changes:
Update the badger database using transactions, as supported from yesterday via: 06242925c2
Add a custom `OnActivate` via mvc/activator/activate_listener.go, this can be used to perform any custom actions when the app registers the supported Controllers. See mvc/session_controller.go for the excellent use case.
errors.Reporter.AddErr returns true if the error is added to the stack, otherwise false
Former-commit-id: c896a2d186a4315643f3c5fdb4325f7ee48a9e0a
20 lines
591 B
Go
20 lines
591 B
Go
// +build go1.9
|
|
|
|
package mvc
|
|
|
|
import (
|
|
"github.com/kataras/iris/mvc/activator"
|
|
)
|
|
|
|
// ActivatePayload contains the necessary information and the ability
|
|
// to alt a controller's registration options, i.e the binder.
|
|
//
|
|
// With `ActivatePayload` the `Controller` can register custom routes
|
|
// or modify the provided values that will be binded to the
|
|
// controller later on.
|
|
//
|
|
// Look the `mvc/activator#ActivatePayload` for its implementation.
|
|
//
|
|
// A shortcut for the `mvc/activator#ActivatePayload`, useful when `OnActivate` is being used.
|
|
type ActivatePayload = activator.ActivatePayload
|