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

Method initGateway

module/cluster/impl.go:78–90  ·  view source on GitHub ↗
(ctx context.Context, clusterId string)

Source from the content-addressed store, hash-verified

76 return nodesOut, nil
77}
78func (m *imlClusterModule) initGateway(ctx context.Context, clusterId string) error {
79 client, err := m.clusterService.GatewayClient(ctx, clusterId)
80 if err != nil {
81 return err
82 }
83 defer func() {
84 err := client.Close(ctx)
85 if err != nil {
86 log.Warn("close apinto client:", err)
87 }
88 }()
89 return gateway.InitGateway(ctx, clusterId, client)
90}
91func (m *imlClusterModule) ClusterNodes(ctx context.Context, clusterId string) ([]*cluster_dto.Node, error) {
92
93 nodes, err := m.clusterService.Nodes(ctx)

Callers 1

ResetClusterMethod · 0.95

Calls 3

InitGatewayFunction · 0.92
GatewayClientMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected