fakeip

package
v0.0.0-...-9a4d6f5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

Pool is a implementation about fake ip generator without storage

func New

func New(ipnet *net.IPNet, size int) (*Pool, error)

New return Pool instance

func (*Pool) Gateway

func (p *Pool) Gateway() net.IP

Gateway return gateway ip

func (*Pool) LookBack

func (p *Pool) LookBack(ip net.IP) (string, bool)

LookBack return host with the fake ip

func (*Pool) Lookup

func (p *Pool) Lookup(host string) net.IP

Lookup return a fake ip with host

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL