1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00

mvc: versioning: add 'Deprecated' feature as well

Former-commit-id: c233bae47aa765a7e1cd9ab7000acd14614a78ae
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-06-20 11:11:44 +03:00
parent 878484204e
commit 04c8b79b1f
5 changed files with 65 additions and 20 deletions

24
mvc/aliases.go Normal file
View File

@@ -0,0 +1,24 @@
package mvc
import (
"github.com/kataras/iris/v12/hero"
"github.com/kataras/iris/v12/versioning"
)
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
// DeprecationOptions describes the deprecation headers key-values.
// Is a type alias for the `versioning#DeprecationOptions`.
//
// See `Deprecated` package-level option.
DeprecationOptions = versioning.DeprecationOptions
)
// 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