(httpProxy *HttpProxy)
| 43 | } |
| 44 | |
| 45 | func (sm *SessionsManager) AddOrUpdateHttpProxy(httpProxy *HttpProxy) error { |
| 46 | httpProxyBytes, err := json.Marshal(httpProxy) |
| 47 | if err != nil { |
| 48 | return err |
| 49 | } |
| 50 | return sm.HttpProxyRuntimeStorage.SetValueByKey(httpProxy.Domain, httpProxyBytes) |
| 51 | } |
| 52 | |
| 53 | func (sm *SessionsManager) DelHttpProxy(domain string) { |
| 54 | sm.HttpProxyRuntimeStorage.DelValueByKey(domain) |
no test coverage detected