mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
19 lines
530 B
Go
19 lines
530 B
Go
|
package context
|
||
|
|
||
|
// RouteReadOnly allows decoupled access to the current route
|
||
|
// inside the context.
|
||
|
type RouteReadOnly interface {
|
||
|
// Name returns the route's name.
|
||
|
Name() string
|
||
|
// String returns the form of METHOD, SUBDOMAIN, TMPL PATH.
|
||
|
String() string
|
||
|
// Path returns the route's original registered path.
|
||
|
Path() string
|
||
|
|
||
|
// IsOnline returns true if the route is marked as "online" (state).
|
||
|
IsOnline() bool
|
||
|
|
||
|
// ResolvePath returns the formatted path's %v replaced with the args.
|
||
|
ResolvePath(args ...string) string
|
||
|
}
|