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

Function updateHandler

service/strategy/iml.go:197–217  ·  view source on GitHub ↗
(e *strategy.Strategy, i *Edit)

Source from the content-addressed store, hash-verified

195 }
196}
197func updateHandler(e *strategy.Strategy, i *Edit) {
198 if i.Name != nil {
199 e.Name = *i.Name
200 }
201 if i.Priority != nil {
202 e.Priority = *i.Priority
203 }
204 if i.Desc != nil {
205 e.Desc = *i.Desc
206 }
207 if i.Filters != nil {
208 e.Filters = *i.Filters
209 }
210 if i.Config != nil {
211 e.Config = *i.Config
212 }
213 if i.IsStop != nil {
214 e.IsStop = *i.IsStop
215 }
216 e.UpdateAt = time.Now()
217}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected