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

Method ListLatest

service/universally/commit/iml.go:30–37  ·  view source on GitHub ↗
(ctx context.Context, target ...string)

Source from the content-addressed store, hash-verified

28}
29
30func (i *imlCommitWithKeyService[T]) ListLatest(ctx context.Context, target ...string) ([]*Commit[T], error) {
31 list, err := i.store.Latest(ctx, target...)
32 if err != nil {
33 return nil, err
34 }
35
36 return utils.SliceToSlice(list, newCommit[T]), nil
37}
38
39func (i *imlCommitWithKeyService[T]) Get(ctx context.Context, uuid string) (*Commit[T], error) {
40 r, err := i.store.Get(ctx, uuid)

Callers 1

LatestMethod · 0.95

Calls 1

LatestMethod · 0.65

Tested by

no test coverage detected