Documentation ¶
Index ¶
- Variables
- type RouteInfo
- type RoutesInfoPlugin
- func (r *RoutesInfoPlugin) Activate(container iris.IPluginContainer) error
- func (r RoutesInfoPlugin) All() []RouteInfo
- func (r RoutesInfoPlugin) ByDomain(domain string) []RouteInfo
- func (r RoutesInfoPlugin) ByDomainAndMethod(domain string, method string) []RouteInfo
- func (r RoutesInfoPlugin) ByMethod(method string) []RouteInfo
- func (r RoutesInfoPlugin) ByMethodAndPath(method string, path string) *RouteInfo
- func (r RoutesInfoPlugin) ByPath(path string) []RouteInfo
- func (r RoutesInfoPlugin) GetDescription() string
- func (r RoutesInfoPlugin) GetName() string
- func (r *RoutesInfoPlugin) PostHandle(route iris.IRoute)
Constants ¶
This section is empty.
Variables ¶
var Name = "RoutesInfo"
the name of the plugin
Functions ¶
This section is empty.
Types ¶
type RoutesInfoPlugin ¶
type RoutesInfoPlugin struct {
// contains filtered or unexported fields
}
func (*RoutesInfoPlugin) Activate ¶
func (r *RoutesInfoPlugin) Activate(container iris.IPluginContainer) error
implement the base IPlugin
func (RoutesInfoPlugin) All ¶
func (r RoutesInfoPlugin) All() []RouteInfo
All returns all routeinfos returns a slice
func (RoutesInfoPlugin) ByDomain ¶
func (r RoutesInfoPlugin) ByDomain(domain string) []RouteInfo
ByDomain returns all routeinfos which registed to a specific domain returns a slice, if nothing founds this slice has 0 len&cap
func (RoutesInfoPlugin) ByDomainAndMethod ¶
func (r RoutesInfoPlugin) ByDomainAndMethod(domain string, method string) []RouteInfo
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 (RoutesInfoPlugin) ByMethod ¶
func (r RoutesInfoPlugin) ByMethod(method string) []RouteInfo
ByMethod returns all routeinfos by a http method returns a slice, if nothing founds this slice has 0 len&cap
func (RoutesInfoPlugin) ByMethodAndPath ¶
func (r RoutesInfoPlugin) ByMethodAndPath(method string, path string) *RouteInfo
ByPathAndMehod returns a single *RouteInfo which has specific http method and path returns only the first match if nothing founds returns nil
func (RoutesInfoPlugin) ByPath ¶
func (r RoutesInfoPlugin) ByPath(path string) []RouteInfo
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 (RoutesInfoPlugin) GetDescription ¶
func (r RoutesInfoPlugin) GetDescription() string
func (RoutesInfoPlugin) GetName ¶
func (r RoutesInfoPlugin) GetName() string
func (*RoutesInfoPlugin) PostHandle ¶
func (r *RoutesInfoPlugin) PostHandle(route iris.IRoute)
PostHandle collect the registed routes information