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

Method Get

service/universally/commit/iml.go:87–94  ·  view source on GitHub ↗
(ctx context.Context, uuid string)

Source from the content-addressed store, hash-verified

85}
86
87func (i *imlCommitService[T]) Get(ctx context.Context, uuid string) (*Commit[T], error) {
88 r, err := i.store.Get(ctx, uuid)
89 if err != nil {
90 return nil, err
91 }
92
93 return newCommit(r), nil
94}
95
96func (i *imlCommitService[T]) Latest(ctx context.Context, target string, key string) (*Commit[T], error) {
97 list, err := i.store.Latest(ctx, key, target)

Callers

nothing calls this directly

Calls 2

newCommitFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected