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

Function NewGet

service/universally/get.go:33–36  ·  view source on GitHub ↗
(store store.ISearchStore[E], toModelHandler func(*E) *T)

Source from the content-addressed store, hash-verified

31}
32
33func NewGet[T any, E any](store store.ISearchStore[E], toModelHandler func(*E) *T) IServiceGet[T] {
34
35 return &imlServiceGet[T, E]{store: store, toModelHandler: toModelHandler}
36}
37
38func (s *imlServiceGet[T, E]) Get(ctx context.Context, uuid string) (*T, error) {
39 where := map[string]interface{}{

Callers 14

OnCompleteMethod · 0.92
OnCompleteMethod · 0.92
OnCompleteMethod · 0.92
OnCompleteMethod · 0.92
OnCompleteMethod · 0.92
OnCompleteMethod · 0.92
OnCompleteMethod · 0.92
OnCompleteMethod · 0.92
OnCompleteMethod · 0.92
OnCompleteMethod · 0.92
OnCompleteMethod · 0.92
OnCompleteMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected