ripe

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client holds an http client used by methods to perform searchs

func New

func New(timeout time.Duration) (c *Client)

New will return an initialized and ready to use controller

func (*Client) Search

func (c *Client) Search(search string) (ranges []Range, err error)

Search returns a list of ranges based on a search string

type Range

type Range struct {
	Name  string
	Range string
	Route string
}

Range contains all information about an IP range

func RemoveDuplicates

func RemoveDuplicates(rangesSets [][]Range) (uniqRanges []Range)

RemoveDuplicates return a uniq list of range

Jump to

Keyboard shortcuts

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