json

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidPortRange = errors.New("Invalid port range.")
)

Functions

This section is empty.

Types

type Host

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

func NewDomainHost

func NewDomainHost(domain string) *Host

func NewIPHost

func NewIPHost(ip net.IP) *Host

func (*Host) Domain

func (this *Host) Domain() string

func (*Host) IP

func (this *Host) IP() net.IP

func (*Host) IsDomain

func (this *Host) IsDomain() bool

func (*Host) IsIP

func (this *Host) IsIP() bool

func (*Host) UnmarshalJSON

func (this *Host) UnmarshalJSON(data []byte) error

type NetworkList

type NetworkList []string

func NewNetworkList

func NewNetworkList(networks []string) NetworkList

func (*NetworkList) HasNetwork

func (this *NetworkList) HasNetwork(network v2net.Network) bool

func (*NetworkList) UnmarshalJSON

func (this *NetworkList) UnmarshalJSON(data []byte) error

type PortRange

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

func (*PortRange) From

func (this *PortRange) From() v2net.Port

func (*PortRange) To

func (this *PortRange) To() v2net.Port

func (*PortRange) UnmarshalJSON

func (this *PortRange) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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