Documentation
¶
Overview ¶
Package destinations holds the bookkeeping both packet counters keep to apply a per-destination limit given by name: which resolved addresses each debuglet's connections to that name reached.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolved ¶
type Resolved struct {
// contains filtered or unexported fields
}
Resolved counts, for each debuglet and the destination address it asked for, the live attachments to each IP that address resolved to. The zero value is ready to use. It does no locking of its own: the packet counter that owns it holds its lock around every call.
func (*Resolved) Remove ¶
Remove drops one attachment recorded by Add. It reports how many attachments of debuglet id through addr to ip remain, and false when there was none to drop, in which case nothing changes.