(name string, key string)
| 17 | } |
| 18 | |
| 19 | func 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 | |
| 29 | type ICommitService[T any] interface { |
| 30 | Latest(ctx context.Context, target string, key string) (*Commit[T], error) |
nothing calls this directly
no outgoing calls
no test coverage detected