MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / httpPutTimer

Function httpPutTimer

timer.go:155–163  ·  view source on GitHub ↗
(timeoutInMinutes int, room string, user string, timerService string, disableSSLVerification bool)

Source from the content-addressed store, hash-verified

153}
154
155func httpPutTimer(timeoutInMinutes int, room string, user string, timerService string, disableSSLVerification bool) error {
156 putBody, _ := json.Marshal(map[string]interface{}{
157 "timer": timeoutInMinutes,
158 "user": user,
159 })
160 client := httpclient.CreateHttpClient(disableSSLVerification)
161 _, err := client.SendRequest(putBody, "PUT", timerService+room)
162 return err
163}
164
165func httpPutBreakTimer(timeoutInMinutes int, room string, user string, timerService string, disableSSLVerification bool) error {
166 putBody, _ := json.Marshal(map[string]interface{}{

Callers 1

startTimerFunction · 0.85

Calls 2

CreateHttpClientFunction · 0.92
SendRequestMethod · 0.65

Tested by

no test coverage detected