MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / Restore

Method Restore

service/strategy/iml.go:38–41  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

36}
37
38func (i *imlStrategyService) Restore(ctx context.Context, id string) error {
39 _, err := i.store.UpdateWhere(ctx, map[string]interface{}{"uuid": id}, map[string]interface{}{"is_delete": false})
40 return err
41}
42
43func (i *imlStrategyService) SearchAllByDriver(ctx context.Context, keyword string, driver string, scope int, target string) ([]*Strategy, error) {
44 w := make(map[string]interface{})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected