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

Method ListLatest

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

Source from the content-addressed store, hash-verified

77}
78
79func (i *imlCommitService[T]) ListLatest(ctx context.Context, key string, target ...string) ([]*Commit[T], error) {
80 list, err := i.store.Latest(ctx, key, target...)
81 if err != nil {
82 return nil, err
83 }
84 return utils.SliceToSlice(list, newCommit[T]), nil
85}
86
87func (i *imlCommitService[T]) Get(ctx context.Context, uuid string) (*Commit[T], error) {
88 r, err := i.store.Get(ctx, uuid)

Callers

nothing calls this directly

Calls 1

LatestMethod · 0.65

Tested by

no test coverage detected