aliases.go 823 B

123456789101112131415161718192021222324
  1. package mvc
  2. import (
  3. "github.com/kataras/iris/hero"
  4. "github.com/kataras/iris/versioning"
  5. )
  6. type (
  7. // Result is a type alias for the `hero#Result`, useful for output controller's methods.
  8. Result = hero.Result
  9. // Response is a type alias for the `hero#Response`, useful for output controller's methods.
  10. Response = hero.Response
  11. // View is a type alias for the `hero#View`, useful for output controller's methods.
  12. View = hero.View
  13. // DeprecationOptions describes the deprecation headers key-values.
  14. // Is a type alias for the `versioning#DeprecationOptions`.
  15. //
  16. // See `Deprecated` package-level option.
  17. DeprecationOptions = versioning.DeprecationOptions
  18. )
  19. // Try is a type alias for the `hero#Try`,
  20. // useful to return a result based on two cases: failure(including panics) and a succeess.
  21. var Try = hero.Try