Documentation
¶
Index ¶
- Variables
- func Exec() *lexec
- func File() *file
- func FileMove(src, trg string) error
- func Forward(targetaddr, listenaddr string, acceptCIDRs []string, callBack ForwardMsgFunc) (closef func())
- func Logf() *logl
- func MasterDomain(url_s string) (string, error)
- func Net() *netl
- func NewUdpListener(network, listenaddr string) (*udpLis, error)
- func RZip() *rZip
- func Rand() *random
- func Zip() *lzip
- type Filel
- type ForwardMsgFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDnsNoAnswer = errors.New("ErrDnsNoAnswer") ErrNetworkNoSupport = errors.New("ErrNetworkNoSupport") ErrUdpOverflow = errors.New("ErrUdpOverflow") )
View Source
var ( ErrForwardAccept pe.Action = `ErrForwardAccept` ErrForwardDail pe.Action = `ErrForwardDail` )
View Source
var ErrUdpConnOverflow = errors.New(`ErrUdpConnOverflow`)
View Source
var ErrUdpConnected error = errors.New("ErrUdpConnected")
Functions ¶
func Forward ¶ added in v0.3.36
func Forward(targetaddr, listenaddr string, acceptCIDRs []string, callBack ForwardMsgFunc) (closef func())
func MasterDomain ¶ added in v0.3.36
func NewUdpListener ¶ added in v0.28.20240414033603
Types ¶
type Filel ¶
type Filel struct { File string //src Loc int64 //WriteOrRead loc ;0:rewrite Or read all;-1 write on end ReadNum int64 Context []interface{} //Write string // wrap with encoder/decoder //https://pkg.go.dev/golang.org/x/text/encoding WrapWriter func(io.Writer) io.Writer // contains filtered or unexported fields }
type ForwardMsgFunc ¶ added in v0.28.20250420054637
type ForwardMsgFunc interface { ErrorMsg(targetaddr, listenaddr string, e error) WarnMsg(targetaddr, listenaddr string, e error) AcceptMsg(remote net.Addr, targetaddr string) (ConFinMsg func()) DenyMsg(remote net.Addr, targetaddr string) LisnMsg(targetaddr, listenaddr string) ClosMsg(targetaddr, listenaddr string) }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.