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

Method Get

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

Source from the content-addressed store, hash-verified

141}
142
143func (i *imlStrategyService) Get(ctx context.Context, id string) (*Strategy, error) {
144 info, err := i.store.GetByUUID(ctx, id)
145 if err != nil {
146 return nil, err
147 }
148 return FromEntity(info), nil
149}
150
151func (i *imlStrategyService) SortDelete(ctx context.Context, id string) error {
152 return i.store.SoftDelete(ctx, map[string]interface{}{"uuid": id})

Callers

nothing calls this directly

Calls 1

FromEntityFunction · 0.70

Tested by

no test coverage detected