MCPcopy
hub / github.com/gdy666/lucky / ReverseProxyRuleListAdd

Function ReverseProxyRuleListAdd

module/reverseproxy/reverseproxy.go:94–100  ·  view source on GitHub ↗
(rule *reverseproxyconf.ReverseProxyRule)

Source from the content-addressed store, hash-verified

92}
93
94func ReverseProxyRuleListAdd(rule *reverseproxyconf.ReverseProxyRule) error {
95 config.ConfigureMutex.Lock()
96 defer config.ConfigureMutex.Unlock()
97
98 config.Configure.ReverseProxyRuleList = append(config.Configure.ReverseProxyRuleList, *rule)
99 return config.Save()
100}
101
102func ReverseProxyRuleListDelete(ruleKey string) error {
103 config.ConfigureMutex.Lock()

Callers

nothing calls this directly

Calls 1

SaveFunction · 0.92

Tested by

no test coverage detected