search

package
v0.6.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNodeNotFound = errors.New("node not found")

Functions

func SearchBinary

func SearchBinary(list []parser.IPNode, ipLookUp string) (p parser.IPNode, e error)

func SearchList

func SearchList(list []parser.IPNode, ipLookUp string) (parser.IPNode, error)

TODO: Add a prometheus metric for when we can't find the IP Returns a parser.IPNode with the smallet range that includes the provided IP address

Types

This section is empty.

Jump to

Keyboard shortcuts

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