Function
ReverseProxyRuleListAdd
(rule *reverseproxyconf.ReverseProxyRule)
Source from the content-addressed store, hash-verified
| 92 | } |
| 93 | |
| 94 | func 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 | |
| 102 | func ReverseProxyRuleListDelete(ruleKey string) error { |
| 103 | config.ConfigureMutex.Lock() |
Callers
nothing calls this directly
Tested by
no test coverage detected