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

Method GetDiff

service/publish/iml.go:160–171  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

158}
159
160func (s *imlPublishService) GetDiff(ctx context.Context, id string) (*service_diff.Diff, error) {
161 ev, err := s.diffStore.GetByUUID(ctx, id)
162 if err != nil {
163 return nil, err
164 }
165 df := new(service_diff.Diff)
166 err = json.Unmarshal(ev.Data, df)
167 if err != nil {
168 return nil, err
169 }
170 return df, nil
171}
172
173func (s *imlPublishService) ListProject(ctx context.Context, service string) ([]*Publish, error) {
174 flows, err := s.store.ListQuery(ctx, "service = ?", []interface{}{service}, "apply_time desc")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected