mirror of
https://github.com/kataras/iris.git
synced 2026-01-04 02:37:14 +00:00
examples: writing an API for the Apache Kafka: add a root handler for routes documentation to make navigation easier and add some other methods that may find them useful for request state and routes description
Former-commit-id: 3775aab2386051b23e127ccc9e3a6accdfdee6d0
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package context
|
||||
|
||||
import "github.com/kataras/iris/core/router/macro"
|
||||
|
||||
// RouteReadOnly allows decoupled access to the current route
|
||||
// inside the context.
|
||||
type RouteReadOnly interface {
|
||||
@@ -29,4 +31,15 @@ type RouteReadOnly interface {
|
||||
|
||||
// ResolvePath returns the formatted path's %v replaced with the args.
|
||||
ResolvePath(args ...string) string
|
||||
|
||||
// Tmpl returns the path template,
|
||||
// it contains the parsed template
|
||||
// for the route's path.
|
||||
// May contain zero named parameters.
|
||||
//
|
||||
// Available after the build state, i.e a request handler or Iris Configurator.
|
||||
Tmpl() macro.Template
|
||||
|
||||
// MainHandlerName returns the first registered handler for the route.
|
||||
MainHandlerName() string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user