MCPcopy
hub / github.com/TarsCloud/TarsGo / ParseTimeOut

Function ParseTimeOut

tars/util/tools/parser.go:96–99  ·  view source on GitHub ↗

ParseTimeOut : Parse time.Duration from int

(timeout int)

Source from the content-addressed store, hash-verified

94
95// ParseTimeOut : Parse time.Duration from int
96func ParseTimeOut(timeout int) (ret time.Duration) {
97 ret = time.Duration(timeout) * time.Millisecond
98 return ret
99}
100
101// ParseStrBool : Parse bool from string
102func ParseStrBool(delay string) (ret bool) {

Callers 5

parseServerConfigMethod · 0.92
parseClientConfigMethod · 0.92
graceShutdownMethod · 0.92
newServerConfigFunction · 0.92
newClientConfigFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected