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

Method Get

service/service-doc/iml.go:109–122  ·  view source on GitHub ↗
(ctx context.Context, sid string)

Source from the content-addressed store, hash-verified

107}
108
109func (i *imlDocService) Get(ctx context.Context, sid string) (*Doc, error) {
110 doc, err := i.store.First(ctx, map[string]interface{}{"sid": sid})
111 if err != nil {
112 return nil, err
113 }
114 return &Doc{
115 ID: doc.Sid,
116 Creator: doc.Creator,
117 Updater: doc.Updater,
118 Doc: doc.Doc,
119 UpdateTime: doc.UpdateAt,
120 CreateTime: doc.CreateAt,
121 }, nil
122}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected