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

Function updateHandler

service/application-authorization/iml.go:94–114  ·  view source on GitHub ↗
(e *service.Authorization, i *Edit)

Source from the content-addressed store, hash-verified

92}
93
94func updateHandler(e *service.Authorization, i *Edit) {
95 if i.Name != nil {
96 e.Name = *i.Name
97 }
98 if i.Position != nil {
99 e.Position = *i.Position
100 }
101 if i.TokenName != nil {
102 e.TokenName = *i.TokenName
103 }
104 if i.Config != nil {
105 e.Config = *i.Config
106 }
107 if i.ExpireTime != nil {
108 e.ExpireTime = *i.ExpireTime
109 }
110 if i.HideCredential != nil {
111 e.HideCredential = *i.HideCredential
112 }
113 e.UpdateAt = time.Now()
114}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected