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

Function toMinutes

timer.go:146–153  ·  view source on GitHub ↗
(timerInMinutes string)

Source from the content-addressed store, hash-verified

144}
145
146func toMinutes(timerInMinutes string) (error, int) {
147 timeoutInMinutes, err := strconv.Atoi(timerInMinutes)
148 if err != nil || timeoutInMinutes < 1 {
149 say.Error(fmt.Sprintf("The parameter must be an integer number greater then zero"))
150 return errors.New("The parameter must be an integer number greater then zero"), 0
151 }
152 return nil, timeoutInMinutes
153}
154
155func httpPutTimer(timeoutInMinutes int, room string, user string, timerService string, disableSSLVerification bool) error {
156 putBody, _ := json.Marshal(map[string]interface{}{

Callers 2

startTimerFunction · 0.85
startBreakTimerFunction · 0.85

Calls 1

ErrorFunction · 0.92

Tested by

no test coverage detected