net

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const IPNET object.Type = "net.ipnet"
View Source
const IPTYPE object.Type = "net.ip"

Variables

This section is empty.

Functions

func InterfaceAddrs

func InterfaceAddrs(ctx context.Context, args ...object.Object) object.Object

func JoinHostPort

func JoinHostPort(ctx context.Context, args ...object.Object) object.Object

func LookupAddr

func LookupAddr(ctx context.Context, args ...object.Object) object.Object

func LookupCNAME

func LookupCNAME(ctx context.Context, args ...object.Object) object.Object

func LookupHost

func LookupHost(ctx context.Context, args ...object.Object) object.Object

func LookupIP

func LookupIP(ctx context.Context, args ...object.Object) object.Object

func LookupPort

func LookupPort(ctx context.Context, args ...object.Object) object.Object

func LookupTXT

func LookupTXT(ctx context.Context, args ...object.Object) object.Object

func Module

func Module() *object.Module

func ParseCIDR

func ParseCIDR(ctx context.Context, args ...object.Object) object.Object

func ParseIP

func ParseIP(ctx context.Context, args ...object.Object) object.Object

func SplitHostPort

func SplitHostPort(ctx context.Context, args ...object.Object) object.Object

Types

type IP

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

func NewIP

func NewIP(v net.IP) *IP

func (*IP) Cost

func (ip *IP) Cost() int

func (*IP) Equals

func (ip *IP) Equals(other object.Object) object.Object

func (*IP) GetAttr

func (ip *IP) GetAttr(name string) (object.Object, bool)

func (*IP) Inspect

func (ip *IP) Inspect() string

func (*IP) Interface

func (ip *IP) Interface() interface{}

func (*IP) IsTruthy

func (ip *IP) IsTruthy() bool

func (*IP) RunOperation

func (ip *IP) RunOperation(opType op.BinaryOpType, right object.Object) object.Object

func (*IP) SetAttr

func (ip *IP) SetAttr(name string, value object.Object) error

func (*IP) String

func (ip *IP) String() string

func (*IP) Type

func (ip *IP) Type() object.Type

func (*IP) Value

func (ip *IP) Value() net.IP

type IPNet

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

func NewIPNet

func NewIPNet(v *net.IPNet) *IPNet

func (*IPNet) Cost

func (n *IPNet) Cost() int

func (*IPNet) Equals

func (n *IPNet) Equals(other object.Object) object.Object

func (*IPNet) GetAttr

func (n *IPNet) GetAttr(name string) (object.Object, bool)

func (*IPNet) Inspect

func (n *IPNet) Inspect() string

func (*IPNet) Interface

func (n *IPNet) Interface() interface{}

func (*IPNet) IsTruthy

func (n *IPNet) IsTruthy() bool

func (*IPNet) RunOperation

func (n *IPNet) RunOperation(opType op.BinaryOpType, right object.Object) object.Object

func (*IPNet) SetAttr

func (n *IPNet) SetAttr(name string, value object.Object) error

func (*IPNet) String

func (n *IPNet) String() string

func (*IPNet) Type

func (n *IPNet) Type() object.Type

func (*IPNet) Value

func (n *IPNet) Value() *net.IPNet

Jump to

Keyboard shortcuts

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