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

Method CommitDoc

service/service-doc/iml.go:39–41  ·  view source on GitHub ↗
(ctx context.Context, serviceId string, data *Doc)

Source from the content-addressed store, hash-verified

37}
38
39func (i *imlDocService) CommitDoc(ctx context.Context, serviceId string, data *Doc) error {
40 return i.commitService.Save(ctx, serviceId, &DocCommit{Content: data.Doc})
41}
42
43func (i *imlDocService) List(ctx context.Context, sids ...string) ([]*Doc, error) {
44 w := map[string]interface{}{}

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.65

Tested by

no test coverage detected