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

Function Register

credentials/tls/certprovider/provider.go:53–55  ·  view source on GitHub ↗

Register registers the Provider builder, whose name as returned by its Name() method will be used as the name registered with this builder. Registered Builders are used by the Store to create Providers.

(b Builder)

Source from the content-addressed store, hash-verified

51// method will be used as the name registered with this builder. Registered
52// Builders are used by the Store to create Providers.
53func Register(b Builder) {
54 m[b.Name()] = b
55}
56
57// getBuilder returns the Provider builder registered with the given name.
58// If no builder is registered with the provided name, nil will be returned.

Callers 6

initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.70

Calls 1

NameMethod · 0.65

Tested by 5

initFunction · 0.74
initFunction · 0.74
initFunction · 0.74
initFunction · 0.74
initFunction · 0.56