MCPcopy
hub / github.com/grpc/grpc-go / newPortMatcher

Function newPortMatcher

internal/xds/rbac/matchers.go:392–394  ·  view source on GitHub ↗
(destinationPort uint32)

Source from the content-addressed store, hash-verified

390}
391
392func newPortMatcher(destinationPort uint32) *portMatcher {
393 return &portMatcher{destinationPort: destinationPort}
394}
395
396func (pm *portMatcher) match(data *rpcData) bool {
397 return data.destinationPort == pm.destinationPort

Callers 1

matchersFromPermissionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected