MCPcopy
hub / github.com/mzz2017/gg / Set

Method Set

proxy/real_ip_mapper.go:19–23  ·  view source on GitHub ↗
(fakeIP netip.Addr, realIP netip.Addr)

Source from the content-addressed store, hash-verified

17}
18
19func (m *RealIPMapper) Set(fakeIP netip.Addr, realIP netip.Addr) {
20 m.mutex.Lock()
21 defer m.mutex.Unlock()
22 m.mapper[fakeIP] = realIP
23}
24
25func (m *RealIPMapper) Get(fakeIP netip.Addr) (realIP netip.Addr, ok bool) {
26 m.mutex.Lock()

Callers 9

ExportToURLMethod · 0.80
WriteMethod · 0.80
NewWsFunction · 0.80
ExportToURLMethod · 0.80
handleUDPMethod · 0.80
getConfigFunction · 0.80
SetValueFunction · 0.80
bindMethod · 0.80
bindKeyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected