Documentation ¶
Index ¶
- type Options
- type Pool
- func (p *Pool) Broadcast() netip.Addr
- func (p *Pool) CloneFrom(o *Pool)
- func (p *Pool) Exist(ip netip.Addr) bool
- func (p *Pool) FlushFakeIP() error
- func (p *Pool) Gateway() netip.Addr
- func (p *Pool) IPNet() netip.Prefix
- func (p *Pool) LookBack(ip netip.Addr) (string, bool)
- func (p *Pool) Lookup(host string) netip.Addr
- func (p *Pool) ShouldSkipped(domain string) bool
- func (p *Pool) StoreState()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { IPNet netip.Prefix Host []C.DomainMatcher Mode C.FilterMode // Size sets the maximum number of entries in memory // and does not work if Persistence is true Size int // Persistence will save the data to disk. // Size will not work and record will be fully stored. Persistence bool }
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool is an implementation about fake ip generator without storage
func (*Pool) FlushFakeIP ¶
func (*Pool) ShouldSkipped ¶
ShouldSkipped return if domain should be skipped
func (*Pool) StoreState ¶
func (p *Pool) StoreState()
Click to show internal directories.
Click to hide internal directories.