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

Function init

xds/server_test.go:262–282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

260)
261
262func init() {
263 fpb1 = &fakeProviderBuilder{
264 name: fakeProvider1Name,
265 buildCh: testutils.NewChannel(),
266 }
267 fpb2 = &fakeProviderBuilder{
268 name: fakeProvider2Name,
269 buildCh: testutils.NewChannel(),
270 }
271 certprovider.Register(fpb1)
272 certprovider.Register(fpb2)
273
274 fakeProvider1Config = json.RawMessage(fmt.Sprintf(`{
275 "plugin_name": "%s",
276 "config": "my fake config 1"
277 }`, fakeProvider1Name))
278 fakeProvider2Config = json.RawMessage(fmt.Sprintf(`{
279 "plugin_name": "%s",
280 "config": "my fake config 2"
281 }`, fakeProvider2Name))
282}
283
284// fakeProviderBuilder builds new instances of fakeProvider and interprets the
285// config provided to it as a string.

Callers

nothing calls this directly

Calls 2

NewChannelFunction · 0.92
RegisterFunction · 0.92

Tested by

no test coverage detected