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 added in v1.1.1

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

func NewDomainHost added in v1.1.1

func NewDomainHost(domain string) *Host

func NewIPHost added in v1.1.1

func NewIPHost(ip net.IP) *Host

func (*Host) Domain added in v1.1.1

func (this *Host) Domain() string

func (*Host) IP added in v1.1.1

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

func (*Host) IsDomain added in v1.1.1

func (this *Host) IsDomain() bool

func (*Host) IsIP added in v1.1.1

func (this *Host) IsIP() bool

func (*Host) UnmarshalJSON added in v1.1.1

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