Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidIP = errors.New("invalid IP address") ErrInvalidPort = errors.New("invalid port number") )
View Source
var ErrInvalidPublicIP = errors.New("invalid public IP address")
Functions ¶
This section is empty.
Types ¶
type Addr ¶
var Blank Addr // nolint: gochecknoglobals
func MustNewFromDotted ¶ added in v0.7.0
func NewFromString ¶
func (Addr) GetDottedIP ¶
type PublicAddr ¶ added in v0.8.0
type PublicAddr struct {
// contains filtered or unexported fields
}
var BlankPublicAddr PublicAddr // nolint: gochecknoglobals
func MustNewPublicAddr ¶ added in v0.8.0
func MustNewPublicAddr(addr Addr) PublicAddr
func NewPublicAddr ¶ added in v0.8.0
func NewPublicAddr(addr Addr) (PublicAddr, error)
func (PublicAddr) ToAddr ¶ added in v0.8.0
func (pa PublicAddr) ToAddr() Addr
Click to show internal directories.
Click to hide internal directories.