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

Method Bool

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

Source from the content-addressed store, hash-verified

363}
364
365func (c *configFileSettings) Bool(name string) (bool, error) {
366 if raw, ok := c.Settings[name]; ok {
367 if v, ok := raw.(bool); ok {
368 return v, nil
369 }
370 return false, fmt.Errorf("expected boolean found %T for %s", raw, name)
371 }
372 return false, nil
373}
374
375var configuration configFileSettings
376

Callers 15

RegisterUdpSessionMethod · 0.80
RequestMethod · 0.80
TestSingleOriginServicesFunction · 0.80
RequestMethod · 0.80
newHTTPLoggerFunction · 0.80
TestProxySingleOriginFunction · 0.80
commandsFunction · 0.80
loginFunction · 0.80
curlFunction · 0.80
sshConfigFunction · 0.80

Calls 1

ErrorfMethod · 0.80

Tested by 3

TestSingleOriginServicesFunction · 0.64
TestProxySingleOriginFunction · 0.64