ipcheck

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Documentation = IpType{documentation, "documetation"}
View Source
var LinkLocal = IpType{linklocal, "linklocal"}
View Source
var Loopback = IpType{loopback, "loopback"}
View Source
var Malformed = IpError(errors.New("malformed"))
View Source
var Multicast = IpType{multicast, "multicast"}
View Source
var Private = IpType{private, "private"}
View Source
var Public = IpType{public, "public"}

These should really be consts, but...

View Source
var Reserved = IpType{reserved, "reserved"}
View Source
var Six2Four = IpType{six2four, "6to4"}

Functions

func ProcessList

func ProcessList(outputFormat string, args *[]string) (b *bytes.Buffer)

Types

type Accumulator

type Accumulator interface {
	Append(ip string, tName string)
	Read() *bytes.Buffer
}

type IpError

type IpError error

type IpType

type IpType struct {
	Id   ipTypeId
	Name string
}

func Type

func Type(s string) (r IpType, err error)

func (IpType) String

func (ip IpType) String() string

type JsonAccumulator

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

func NewJsonAccumulator

func NewJsonAccumulator() *JsonAccumulator

func (JsonAccumulator) Append

func (a JsonAccumulator) Append(ip string, tName string)

func (JsonAccumulator) Read

func (a JsonAccumulator) Read() *bytes.Buffer

type TextAccumulator

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

func NewTextAccumulator

func NewTextAccumulator() *TextAccumulator

func (TextAccumulator) Append

func (a TextAccumulator) Append(ip string, tName string)

func (TextAccumulator) Read

func (a TextAccumulator) Read() *bytes.Buffer

Jump to

Keyboard shortcuts

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