MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / initCluster

Method initCluster

module/plugin-cluster/iml.go:162–174  ·  view source on GitHub ↗
(ctx context.Context, clusterId string)

Source from the content-addressed store, hash-verified

160}
161
162func (m *imlPluginClusterModule) initCluster(ctx context.Context, clusterId string) error {
163 client, err := m.clusterService.GatewayClient(ctx, clusterId)
164 if err != nil {
165 return err
166 }
167 defer func() {
168 err := client.Close(ctx)
169 if err != nil {
170 log.Warn("close apinto client:", err)
171 }
172 }()
173 return m.initGateway(ctx, clusterId, client)
174}

Callers 2

initAllClusterMethod · 0.95
SetMethod · 0.95

Calls 3

initGatewayMethod · 0.95
GatewayClientMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected