func (f *FilterRouter) ValidRouter(url string, ctx *context.Context) bool {
	isOk := f.tree.Match(url, ctx)
	if isOk != nil {
		if b, ok := isOk.(bool); ok {
			return b
		}
	}
	return false
}
ValidRouter checks if the current request is matched by this filter.
If the request is matched, the values of the URL parameters defined
by the filter pattern are also returned.
package beego
import "github.com/astaxie/beego/context"
type FilterFunc func(*context.Context)
type FilterRouter struct {
	filterFunc     FilterFunc
	tree           *Tree
	pattern        string
	returnOnOutput bool
	resetParams    bool
}