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

Method List

service/universally/commit/iml.go:69–77  ·  view source on GitHub ↗
(ctx context.Context, uuids ...string)

Source from the content-addressed store, hash-verified

67}
68
69func (i *imlCommitService[T]) List(ctx context.Context, uuids ...string) ([]*Commit[T], error) {
70 list, err := i.store.List(ctx, uuids...)
71 if err != nil {
72 return nil, err
73 }
74
75 return utils.SliceToSlice(list, newCommit[T]), nil
76
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...)

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected