Documentation ¶
Index ¶
- Constants
- type Plugin
- func (r Plugin) All() []RouteInfo
- func (r Plugin) ByDomain(domain string) []RouteInfo
- func (r Plugin) ByDomainAndMethod(domain string, method string) []RouteInfo
- func (r Plugin) ByMethod(method string) []RouteInfo
- func (r Plugin) ByMethodAndPath(method string, path string) *RouteInfo
- func (r Plugin) ByPath(path string) []RouteInfo
- func (r Plugin) GetDescription() string
- func (r Plugin) GetName() string
- func (r *Plugin) PostHandle(route iris.IRoute)
- type RouteInfo
Constants ¶
const Name = "RoutesInfo"
Name the name of the plugin, is "RoutesInfo"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin the routes info plugin, holds the routes as RouteInfo objects
func (Plugin) ByDomain ¶
ByDomain returns all routeinfos which registed to a specific domain returns a slice, if nothing founds this slice has 0 len&cap
func (Plugin) ByDomainAndMethod ¶
ByDomainAndMethod returns all routeinfos registed to a specific domain and has specific http method returns a slice, if nothing founds this slice has 0 len&cap
func (Plugin) ByMethod ¶
ByMethod returns all routeinfos by a http method returns a slice, if nothing founds this slice has 0 len&cap
func (Plugin) ByMethodAndPath ¶
ByMethodAndPath returns a single *RouteInfo which has specific http method and path returns only the first match if nothing founds returns nil
func (Plugin) ByPath ¶
ByPath returns all routeinfos by a path maybe one path is the same on GET and POST ( for example /login GET, /login POST) because of that it returns a slice and not only one RouteInfo returns a slice, if nothing founds this slice has 0 len&cap
func (Plugin) GetDescription ¶
GetDescription RoutesInfo gives information about the registed routes
func (*Plugin) PostHandle ¶
PostHandle collect the registed routes information