(e *ai.Key, i *Edit)
| 236 | } |
| 237 | } |
| 238 | func 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected