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

Function NewBuildableConfig

credentials/tls/certprovider/store.go:132–139  ·  view source on GitHub ↗

NewBuildableConfig creates a new BuildableConfig with the given arguments. Provider implementations are expected to invoke this function after parsing the given configuration as part of their ParseConfig() method. Equivalent configurations are expected to invoke this function with the same config ar

(name string, config []byte, starter func(BuildOptions) Provider)

Source from the content-addressed store, hash-verified

130// Equivalent configurations are expected to invoke this function with the same
131// config argument.
132func NewBuildableConfig(name string, config []byte, starter func(BuildOptions) Provider) *BuildableConfig {
133 return &BuildableConfig{
134 name: name,
135 config: config,
136 starter: starter,
137 pStore: provStore,
138 }
139}
140
141// Build kicks off a provider instance with the wrapped configuration. Multiple
142// invocations of this method with the same opts will result in provider

Callers 6

ParseConfigMethod · 0.92
ParseConfigMethod · 0.92
ParseConfigMethod · 0.92
ParseConfigMethod · 0.92
ParseConfigMethod · 0.92
ParseConfigMethod · 0.85

Calls

no outgoing calls

Tested by 5

ParseConfigMethod · 0.74
ParseConfigMethod · 0.74
ParseConfigMethod · 0.74
ParseConfigMethod · 0.74
ParseConfigMethod · 0.68