2017-12-25 19:57:04 +01:00
|
|
|
package mvc
|
|
|
|
|
2020-06-20 10:11:44 +02:00
|
|
|
import (
|
|
|
|
"github.com/kataras/iris/v12/hero"
|
|
|
|
"github.com/kataras/iris/v12/versioning"
|
|
|
|
)
|
2017-12-25 19:57:04 +01:00
|
|
|
|
|
|
|
type (
|
|
|
|
// Result is a type alias for the `hero#Result`, useful for output controller's methods.
|
|
|
|
Result = hero.Result
|
|
|
|
// Response is a type alias for the `hero#Response`, useful for output controller's methods.
|
|
|
|
Response = hero.Response
|
|
|
|
// View is a type alias for the `hero#View`, useful for output controller's methods.
|
|
|
|
View = hero.View
|
2020-08-22 07:04:22 +02:00
|
|
|
// Code is a type alias for the `hero#Code`, useful for
|
|
|
|
// http error handling in controllers.
|
|
|
|
// This can be one of the input parameters of the `Controller.HandleHTTPError`.
|
|
|
|
Code = hero.Code
|
2020-06-20 10:11:44 +02:00
|
|
|
// DeprecationOptions describes the deprecation headers key-values.
|
|
|
|
// Is a type alias for the `versioning#DeprecationOptions`.
|
|
|
|
//
|
|
|
|
// See `Deprecated` package-level option.
|
|
|
|
DeprecationOptions = versioning.DeprecationOptions
|
2017-12-25 19:57:04 +01:00
|
|
|
)
|
|
|
|
|
2019-08-17 09:06:20 +02:00
|
|
|
// Try is a type alias for the `hero#Try`,
|
|
|
|
// useful to return a result based on two cases: failure(including panics) and a succeess.
|
|
|
|
var Try = hero.Try
|