iris/context/route.go
kataras 91bad4b82b Push v8.3.4 | Read HISTORY.md
Former-commit-id: e660dd91a4aae6d58c823f89cca733f02256c819
2017-08-23 17:01:51 +03:00

27 lines
656 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
// Method returns the route's method.
Method() string
// Subdomains returns the route's subdomain.
Subdomain() string
// Path returns the route's original registered path.
Path() string
// String returns the form of METHOD, SUBDOMAIN, TMPL PATH.
String() 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
}