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

Method Delete

module/system-apikey/iml.go:245–257  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

243}
244
245func (i *imlAPIKeyModule) Delete(ctx context.Context, id string) error {
246 return i.transaction.Transaction(ctx, func(ctx context.Context) error {
247 err := i.apikeyService.Delete(ctx, id)
248 if err != nil {
249 return err
250 }
251 client, err := i.clusterServer.GatewayClient(ctx, cluster.DefaultClusterID)
252 if err != nil {
253 return err
254 }
255 return i.online(ctx, client)
256 })
257}
258
259func (i *imlAPIKeyModule) Get(ctx context.Context, id string) (*system_apikey_dto.APIKey, error) {
260 info, err := i.apikeyService.Get(ctx, id)

Callers

nothing calls this directly

Calls 3

onlineMethod · 0.95
DeleteMethod · 0.65
GatewayClientMethod · 0.65

Tested by

no test coverage detected