Method
SaveServiceDoc
(ctx context.Context, pid string, input *serviceDto.SaveServiceDoc)
Source from the content-addressed store, hash-verified
| 1029 | } |
| 1030 | |
| 1031 | func (i *imlServiceDocModule) SaveServiceDoc(ctx context.Context, pid string, input *serviceDto.SaveServiceDoc) error { |
| 1032 | _, err := i.serviceService.Check(ctx, pid, map[string]bool{"as_server": true}) |
| 1033 | if err != nil { |
| 1034 | return err |
| 1035 | } |
| 1036 | return i.serviceDocService.Save(ctx, &service_doc.SaveDoc{ |
| 1037 | Sid: pid, |
| 1038 | Doc: input.Doc, |
| 1039 | }) |
| 1040 | } |
| 1041 | |
| 1042 | var ( |
| 1043 | _ IAppModule = &imlAppModule{} |
Callers
nothing calls this directly
Tested by
no test coverage detected