MCPcopy
hub / github.com/txthinking/brook / Set

Method Set

nat.go:33–37  ·  view source on GitHub ↗
(src, dst, addr string)

Source from the content-addressed store, hash-verified

31}
32
33func (n *NATTable) Set(src, dst, addr string) {
34 n.Lock.Lock()
35 defer n.Lock.Unlock()
36 n.Table[src+dst] = addr
37}
38
39func (n *NATTable) Get(src, dst string) string {
40 n.Lock.Lock()

Callers 12

ListenAndServeMethod · 0.80
dohserver.goFile · 0.80
ServeHTTPMethod · 0.80
nat.goFile · 0.80
ServeHTTPMethod · 0.80
ExchangeMethod · 0.80
ListenAndServeMethod · 0.80
LinkFunction · 0.80
ListHasDomainFunction · 0.80
ListHasIPFunction · 0.80
mainFunction · 0.80
soahFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected