iputil

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToNetIpAddr added in v1.6.0

func ToNetIpAddr(ip net.IP) (netip.Addr, error)

func ToNetIpPrefix added in v1.6.0

func ToNetIpPrefix(ipNet net.IPNet) (netip.Prefix, error)

Types

type VpnIp

type VpnIp uint32

func Ip2VpnIp

func Ip2VpnIp(ip []byte) VpnIp

func (VpnIp) MarshalJSON

func (ip VpnIp) MarshalJSON() ([]byte, error)

func (VpnIp) String

func (ip VpnIp) String() string

func (VpnIp) ToIP

func (ip VpnIp) ToIP() net.IP

func (VpnIp) ToNetIpAddr added in v1.6.0

func (ip VpnIp) ToNetIpAddr() netip.Addr

Jump to

Keyboard shortcuts

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