MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / UpdateInfo

Method UpdateInfo

pkg/basicstation/cups/update_info.go:148–157  ·  view source on GitHub ↗

UpdateInfo implements the CUPS update-info handler.

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

146
147// UpdateInfo implements the CUPS update-info handler.
148func (s *Server) UpdateInfo(w http.ResponseWriter, r *http.Request) {
149 ctx := r.Context()
150 registerUpdateInfoRequestReceived(ctx, updateInfoRequestLabel)
151 if err := s.updateInfo(w, r); err != nil {
152 registerUpdateInfoRequestFailed(ctx, updateInfoRequestLabel, err)
153 webhandlers.Error(w, r, err)
154 } else {
155 registerUpdateInfoRequestSucceeded(ctx, updateInfoRequestLabel)
156 }
157}
158
159var errParse = errors.DefineAborted("parse", "request body parsing")
160

Callers

nothing calls this directly

Calls 6

updateInfoMethod · 0.95
ErrorFunction · 0.92
ContextMethod · 0.65

Tested by

no test coverage detected