// Match returns true if the connection matches all matchers in mset
// or if there are no matchers. Any error terminates matching.
Match returns true if the connection matches all matchers in mset
or if there are no matchers. Any error terminates matching.
// Match returns true if the connection matches all matchers in mset // or if there are no matchers . Any error terminates matching .
func (mset MatcherSet) Match(cx *Connection) (matched bool, err error) {
	for _, m := range mset {
		cx.record()
		matched, err = m.Match(cx)
		cx.rewind()
		if !matched || err != nil {
			return
		}
	}
	matched = true
	return
}
func ( mset MatcherSet ) Match ( cx * Connection ) ( matched bool , err error ) { for _ , m := range mset { cx . record ( ) matched , err = m . Match ( cx ) cx . rewind ( ) if ! matched || err != nil { return } } matched = true return }
Match returns true if the connection matches all matchers in mset
or if there are no matchers.
Match returns true if the connection matches all matchers in mset or if there are no matchers .