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

Function httpPutBreakTimer

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

Source from the content-addressed store, hash-verified

163}
164
165func httpPutBreakTimer(timeoutInMinutes int, room string, user string, timerService string, disableSSLVerification bool) error {
166 putBody, _ := json.Marshal(map[string]interface{}{
167 "breaktimer": timeoutInMinutes,
168 "user": user,
169 })
170 client := httpclient.CreateHttpClient(disableSSLVerification)
171 _, err := client.SendRequest(putBody, "PUT", timerService+room)
172 return err
173}
174
175func getSleepCommand(timeoutInSeconds int) string {
176 return fmt.Sprintf("sleep %d", timeoutInSeconds)

Callers 1

startBreakTimerFunction · 0.85

Calls 2

CreateHttpClientFunction · 0.92
SendRequestMethod · 0.65

Tested by

no test coverage detected