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

Function updateHandler

service/ai-key/iml.go:238–256  ·  view source on GitHub ↗
(e *ai.Key, i *Edit)

Source from the content-addressed store, hash-verified

236 }
237}
238func updateHandler(e *ai.Key, i *Edit) {
239 if i.Name != nil {
240 e.Name = *i.Name
241 }
242 if i.Config != nil {
243 e.Config = *i.Config
244 }
245 if i.Status != nil {
246 e.Status = *i.Status
247 }
248 if i.ExpireTime != nil {
249 e.ExpireTime = *i.ExpireTime
250 }
251 if i.Priority != nil {
252 e.Sort = *i.Priority
253 }
254
255 e.UpdateAt = time.Now()
256}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected