csnet

package
v1.6.11 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapSockErr

func WrapSockErr(err error, socket string) error

WrapSockErr wraps the provided error with a possible cause if the unix socket path exceeds a system-specific maximum length. It returns the original error otherwise.

Types

type IP added in v1.6.10

type IP struct {
	Addr int64
	Sfx  int64
	// contains filtered or unexported fields
}

type IPAddrSize added in v1.6.10

type IPAddrSize int
const (
	IPv4Size IPAddrSize = 4
	IPv6Size IPAddrSize = 16
)

type Range added in v1.6.10

type Range struct {
	Start IP
	End   IP
}

func NewRange added in v1.6.10

func NewRange(anyIP string) (Range, error)

func (Range) Size added in v1.6.10

func (r Range) Size() int

Jump to

Keyboard shortcuts

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