types

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CIDR

type CIDR net.IPNet

func ParseCIDR

func ParseCIDR(v string) (cidr CIDR, err error)

func (CIDR) Contains

func (cidr CIDR) Contains(ip net.IP) bool

func (CIDR) MarshalText

func (cidr CIDR) MarshalText() ([]byte, error)

func (*CIDR) Parse

func (cidr *CIDR) Parse(v string) error

func (CIDR) String

func (cidr CIDR) String() string

type NetListenerWrapper

type NetListenerWrapper struct {
	net.Listener
}

func (NetListenerWrapper) Accept

func (l NetListenerWrapper) Accept() (StreamConn, error)

type Stream

type Stream interface {
	fmt.Stringer
	StreamListener
	Setup() error
	Handle(conn StreamConn) error
}

type StreamConn

type StreamConn any

type StreamListener

type StreamListener interface {
	Addr() net.Addr
	Accept() (StreamConn, error)
	Close() error
}

func NetListener

func NetListener(l net.Listener) StreamListener

type URL

type URL struct {
	urlPkg.URL
	// contains filtered or unexported fields
}

func MustParseURL

func MustParseURL(url string) *URL

func NewURL

func NewURL(url *urlPkg.URL) *URL

func ParseURL

func ParseURL(url string) (*URL, error)

func (*URL) Equals

func (u *URL) Equals(other *URL) bool

func (*URL) MarshalJSON

func (u *URL) MarshalJSON() (text []byte, err error)

func (*URL) Parse

func (u *URL) Parse(url string) error

func (*URL) String

func (u *URL) String() string

Jump to

Keyboard shortcuts

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