MCPcopy
hub / github.com/livekit/livekit / v1Validate

Method v1Validate

pkg/service/rtcservice.go:106–114  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

104}
105
106func (s *RTCService) v1Validate(w http.ResponseWriter, r *http.Request) {
107 lgr := utils.GetLogger(r.Context())
108 _, _, code, err := s.validateInternal(lgr, r, true, true)
109 if err != nil {
110 HandleError(w, r, code, err)
111 return
112 }
113 _, _ = w.Write([]byte("success"))
114}
115
116func decodeAttributes(str string) (map[string]string, error) {
117 data, err := base64.URLEncoding.DecodeString(str)

Callers

nothing calls this directly

Calls 4

validateInternalMethod · 0.95
GetLoggerFunction · 0.92
HandleErrorFunction · 0.85
WriteMethod · 0.65

Tested by

no test coverage detected