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

Function IsCompressorNameRegistered

internal/grpcutil/compressor.go:29–36  ·  view source on GitHub ↗

IsCompressorNameRegistered returns true when name is available in registry.

(name string)

Source from the content-addressed store, hash-verified

27
28// IsCompressorNameRegistered returns true when name is available in registry.
29func IsCompressorNameRegistered(name string) bool {
30 for _, compressor := range RegisteredCompressorNames {
31 if compressor == name {
32 return true
33 }
34 }
35 return false
36}
37
38// RegisteredCompressors returns a string of registered compressor names
39// separated by comma.

Callers 4

validateSendCompressorFunction · 0.92
RegisterCompressorFunction · 0.92
createHeaderFieldsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected