MCPcopy
hub / github.com/cloudflare/cloudflared / Int

Method Int

config/configuration.go:279–287  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

277}
278
279func (c *configFileSettings) Int(name string) (int, error) {
280 if raw, ok := c.Settings[name]; ok {
281 if v, ok := raw.(int); ok {
282 return v, nil
283 }
284 return 0, fmt.Errorf("expected int found %T for %s", raw, name)
285 }
286 return 0, nil
287}
288
289func (c *configFileSettings) Duration(name string) (time.Duration, error) {
290 if raw, ok := c.Settings[name]; ok {

Callers 15

TestConfigFileSettingsFunction · 0.95
RegisterUdpSessionMethod · 0.80
serveUDPSessionMethod · 0.80
closeUDPSessionMethod · 0.80
NewDatagramV3ConnectionFunction · 0.80
wsFlakyEndpointFunction · 0.80
logConnectingMethod · 0.80
logConnectedMethod · 0.80
waitForUnregisterMethod · 0.80
RequestMethod · 0.80
sendReplyMethod · 0.80

Calls 1

ErrorfMethod · 0.80

Tested by 9

TestConfigFileSettingsFunction · 0.76
wsFlakyEndpointFunction · 0.64
TestServeFunction · 0.64