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

Function InitCommitWithKeyService

service/universally/commit/service.go:19–27  ·  view source on GitHub ↗
(name string, key string)

Source from the content-addressed store, hash-verified

17}
18
19func InitCommitWithKeyService[T any](name string, key string) {
20 autowire.Auto[commit.ICommitWKStore[T]](func() reflect.Value {
21
22 return reflect.ValueOf(commit.NewCommitWithKey[T](name, key))
23 })
24 autowire.Auto[ICommitWithKeyService[T]](func() reflect.Value {
25 return reflect.ValueOf(&imlCommitWithKeyService[T]{})
26 })
27}
28
29type ICommitService[T any] interface {
30 Latest(ctx context.Context, target string, key string) (*Commit[T], error)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected