MCPcopy Create free account
hub / github.com/cppla/moto / init

Function init

config/setting.go:44–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 ProtocolTCP = "tcp"
43 ProtocolSOCKS5 = "socks5"
44 ConnectProxyH2 = "h2"
45 ConnectProxyH3 = "h3"
46 HealthCheckTCP = "tcp"
47 HealthCheckHTTP = "http"
48 ProxyProtocolV1 = "v1"
49 ProxyProtocolV2 = "v2"
50 maxRuleTimeout = 5 * time.Minute
51 minHealthInterval = 250 * time.Millisecond
52 maxHealthInterval = 10 * time.Minute
53 minHealthTimeout = 50 * time.Millisecond
54 maxHealthTimeout = 30 * time.Second
55 maxHealthThreshold = 20
56 minHedgeDelay = 10
57 maxHedgeDelay = 5_000
58 maxHealthPath = 2 << 10
59 maxRules = 256
60 maxTargets = 128
61 maxPrewarmTargets = 256
62 maxActiveHealthJobs = 1024
63 maxConnections = 1_000_000
64 maxAccessItems = 4096
65 maxTLSMatchers = 64
66 maxConfigFileBytes = 16 << 20
67 maxBasicCredential = 4 << 10
68 maxUserAgents = 64
69 maxUserAgentBytes = 1024
70)
71

Callers

nothing calls this directly

Calls 1

verifyMethod · 0.80

Tested by

no test coverage detected