(pathMatcher *v3matcherpb.PathMatcher)
| 309 | } |
| 310 | |
| 311 | func newURLPathMatcher(pathMatcher *v3matcherpb.PathMatcher) (*urlPathMatcher, error) { |
| 312 | stringMatcher, err := internalmatcher.StringMatcherFromProto(pathMatcher.GetPath()) |
| 313 | if err != nil { |
| 314 | return nil, err |
| 315 | } |
| 316 | return &urlPathMatcher{stringMatcher: stringMatcher}, nil |
| 317 | } |
| 318 | |
| 319 | func (upm *urlPathMatcher) match(data *rpcData) bool { |
| 320 | return upm.stringMatcher.Match(data.fullMethod) |
no outgoing calls
no test coverage detected