common

package
v0.0.0-...-e749f68 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration struct {
	time.Duration
}

func (Duration) MarshalJSON

func (i Duration) MarshalJSON() ([]byte, error)

MarshalJSON for IPNet

func (*Duration) UnmarshalJSON

func (i *Duration) UnmarshalJSON(b []byte) error

UnmarshalJSON for IPNet

type HardwareAddress

type HardwareAddress struct {
	net.HardwareAddr
}

func (HardwareAddress) MarshalJSON

func (i HardwareAddress) MarshalJSON() ([]byte, error)

MarshalJSON for IPCIDR

func (*HardwareAddress) UnmarshalJSON

func (i *HardwareAddress) UnmarshalJSON(b []byte) error

UnmarshalJSON for IPCIDR

type IPCIDR

type IPCIDR struct {
	net.IPNet
}

IPCIDR is IP Address with the mask in CIDR format

func (IPCIDR) MarshalJSON

func (i IPCIDR) MarshalJSON() ([]byte, error)

MarshalJSON for IPCIDR

func (*IPCIDR) UnmarshalJSON

func (i *IPCIDR) UnmarshalJSON(b []byte) error

UnmarshalJSON for IPCIDR

type IPNet

type IPNet struct {
	net.IPNet
}

func (IPNet) MarshalJSON

func (i IPNet) MarshalJSON() ([]byte, error)

MarshalJSON for IPNet

func (*IPNet) UnmarshalJSON

func (i *IPNet) UnmarshalJSON(b []byte) error

UnmarshalJSON for IPNet

Jump to

Keyboard shortcuts

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