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

Method LatestStrategyCommit

service/strategy/iml.go:93–99  ·  view source on GitHub ↗
(ctx context.Context, scope string, target string, strategyId string)

Source from the content-addressed store, hash-verified

91}
92
93func (i *imlStrategyService) LatestStrategyCommit(ctx context.Context, scope string, target string, strategyId string) (*commit.Commit[Commit], error) {
94 key := scope
95 if target != "" {
96 key = fmt.Sprintf("%s-%s", scope, target)
97 }
98 return i.commitService.Latest(ctx, strategyId, key)
99}
100
101func (i *imlStrategyService) ListLatestStrategyCommit(ctx context.Context, scope string, target string, strategyIds ...string) ([]*commit.Commit[Commit], error) {
102 key := scope

Callers

nothing calls this directly

Calls 1

LatestMethod · 0.65

Tested by

no test coverage detected