ipcache

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IpCacheTimeout = flag.Duration("IpCacheTimeout", 120*time.Second, "Timeout duration in seconds for IPCache")

Do not traceroute to an IP more than once in this many seconds

Functions

This section is empty.

Types

type RecentIPCache

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

func New

func New(ctx context.Context) *RecentIPCache

func (*RecentIPCache) Add

func (m *RecentIPCache) Add(ip string)

func (*RecentIPCache) Has

func (m *RecentIPCache) Has(ip string) bool

Jump to

Keyboard shortcuts

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