Documentation ¶
Overview ¶
Copyright © 2019 Amari Robinson
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2019 Amari Robinson ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2019 Amari Robinson ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2019 Amari Robinson ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type DataLinkAddr
- type IPv4
- func (addr IPv4) MarshalJSON() ([]byte, error)
- func (addr IPv4) MarshalText() ([]byte, error)
- func (addr IPv4) MarshalYAML() (interface{}, error)
- func (addr IPv4) String() string
- func (addr *IPv4) UnmarshalJSON(data []byte) (err error)
- func (addr *IPv4) UnmarshalTOML(data []byte) (err error)
- func (addr *IPv4) UnmarshalYAML(value *yaml.Node) error
- type IPv4Mask
- func (addr IPv4Mask) MarshalJSON() ([]byte, error)
- func (addr IPv4Mask) MarshalText() ([]byte, error)
- func (addr IPv4Mask) MarshalYAML() (interface{}, error)
- func (addr IPv4Mask) String() string
- func (addr *IPv4Mask) UnmarshalJSON(data []byte) (err error)
- func (addr *IPv4Mask) UnmarshalTOML(data []byte) (err error)
- func (addr *IPv4Mask) UnmarshalYAML(value *yaml.Node) error
- type IPv6
- func (addr IPv6) MarshalJSON() ([]byte, error)
- func (addr IPv6) MarshalText() ([]byte, error)
- func (addr IPv6) MarshalYAML() (interface{}, error)
- func (addr IPv6) String() string
- func (addr *IPv6) UnmarshalJSON(data []byte) (err error)
- func (addr *IPv6) UnmarshalTOML(data []byte) (err error)
- func (addr *IPv6) UnmarshalYAML(value *yaml.Node) error
- type IPv6PrefixLen
- type MACAddr
- func (m MACAddr) Bytes() []byte
- func (m MACAddr) CanonicalString() string
- func (m MACAddr) HumanReadableString() string
- func (m MACAddr) MarshalJSON() ([]byte, error)
- func (m MACAddr) MarshalTOML() ([]byte, error)
- func (m MACAddr) MarshalText() ([]byte, error)
- func (m MACAddr) MarshalYAML() (interface{}, error)
- func (m *MACAddr) UnmarshalJSON(data []byte) error
- func (m *MACAddr) UnmarshalTOML(data []byte) error
- func (m *MACAddr) UnmarshalText(data []byte) error
- func (m *MACAddr) UnmarshalYAML(value *yaml.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataLinkAddr ¶
type DataLinkAddr interface { // Bytes returns the data link address as a byte sequence. Bytes() []byte // CanonicalString returns a canonicalized string representation. CanonicalString() string HumanReadableString() string }
DataLinkAddr represents a OSI Layer 2 data link address.
func ParseCanonicalAddr ¶
func ParseCanonicalAddr(s string) (DataLinkAddr, error)
ParseCanonicalAddr parses a string previously created with `CanonicalString`.
type IPv4 ¶
func (IPv4) MarshalJSON ¶
func (IPv4) MarshalText ¶
func (IPv4) MarshalYAML ¶
func (*IPv4) UnmarshalJSON ¶
func (*IPv4) UnmarshalTOML ¶
func (*IPv4) UnmarshalYAML ¶
type IPv4Mask ¶
func (IPv4Mask) MarshalJSON ¶
func (IPv4Mask) MarshalText ¶
func (IPv4Mask) MarshalYAML ¶
func (*IPv4Mask) UnmarshalJSON ¶
func (*IPv4Mask) UnmarshalTOML ¶
func (*IPv4Mask) UnmarshalYAML ¶
type IPv6 ¶
func (IPv6) MarshalJSON ¶
func (IPv6) MarshalText ¶
func (IPv6) MarshalYAML ¶
func (*IPv6) UnmarshalJSON ¶
func (*IPv6) UnmarshalTOML ¶
func (*IPv6) UnmarshalYAML ¶
type IPv6PrefixLen ¶
type IPv6PrefixLen uint8
func (*IPv6PrefixLen) UnmarshalJSON ¶
func (l *IPv6PrefixLen) UnmarshalJSON(data []byte) error
UnmarshalJSON implements `json.Unmarshaler`
func (*IPv6PrefixLen) UnmarshalTOML ¶
func (l *IPv6PrefixLen) UnmarshalTOML(data []byte) error
UnmarshalTOML implements `toml.Unmarshaler`
func (*IPv6PrefixLen) UnmarshalText ¶
func (l *IPv6PrefixLen) UnmarshalText(data []byte) error
UnmarshalText implements `encoding.Unmarshaler`
func (*IPv6PrefixLen) UnmarshalYAML ¶
func (l *IPv6PrefixLen) UnmarshalYAML(value *yaml.Node) error
UnmarshalYAML implements `yaml.Unmarshaler`
type MACAddr ¶
type MACAddr net.HardwareAddr
MACAddr is a "media access control" address
func (MACAddr) CanonicalString ¶
CanonicalString implements `DataLinkAddr`.
func (MACAddr) HumanReadableString ¶
HumanReadableString implements `DataLinkAddr`.
func (MACAddr) MarshalJSON ¶
MarshalJSON implements `json.Marshaler`
func (MACAddr) MarshalTOML ¶
MarshalTOML implements `toml.Marshaler`
func (MACAddr) MarshalText ¶
MarshalText implements `encoding.Marshaler`
func (MACAddr) MarshalYAML ¶
MarshalYAML implements `yaml.Marshaler`
func (*MACAddr) UnmarshalJSON ¶
UnmarshalJSON implements `json.Unmarshaler`
func (*MACAddr) UnmarshalTOML ¶
UnmarshalTOML implements `toml.Unmarshaler`
func (*MACAddr) UnmarshalText ¶
UnmarshalText implements `encoding.Unmarshaler`
func (*MACAddr) UnmarshalYAML ¶
UnmarshalYAML implements `yaml.Unmarshaler`