Documentation ¶
Index ¶
- Constants
- Variables
- func Checkfile() *checkfile
- func Exec() *lexec
- func File() *file
- func FileMove(src, trg string) error
- func Forward(targetaddr, listenaddr string, acceptCIDRs []string) (closef func(), msg_chan chan ForwardMsg)
- func Json() *json
- func Logf() *logl
- func MasterDomain(url_s string) (string, error)
- func Md5() *md5l
- func Net() *netl
- func NewUdpConn(per []byte, remoteAdd *net.UDPAddr, conn *net.UDPConn) *udpConn
- func NewUdpListener(network, listenaddr string, pkgSize ...int) (*udpLis, error)
- func RZip() *rZip
- func Rand() *random
- func Zip() *lzip
- type ConnPool
- type ConnPoolItem
- type Filel
- type ForwardMsg
Constants ¶
View Source
const ( ErrorMsg = iota AcceptMsg DenyMsg LisnMsg )
Variables ¶
Functions ¶
func Forward ¶ added in v0.3.36
func Forward(targetaddr, listenaddr string, acceptCIDRs []string) (closef func(), msg_chan chan ForwardMsg)
func MasterDomain ¶ added in v0.3.36
func NewUdpConn ¶ added in v0.28.20240414033603
func NewUdpListener ¶ added in v0.28.20240414033603
Types ¶
type ConnPool ¶ added in v0.28.20240414033603
type ConnPool struct {
// contains filtered or unexported fields
}
func NewConnPool ¶ added in v0.28.20240414033603
type ConnPoolItem ¶ added in v0.28.20240414033603
type ConnPoolItem struct {
// contains filtered or unexported fields
}
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 ForwardMsg ¶ added in v0.3.36
type ForwardMsg struct { Type int Msg interface{} }
when Type is ErrorMsg, Msg is set to error when Type is AcceptMsg, Msg is set to net.Addr when Type is DenyMsg, Msg is set to net.Addr when Type is LisnMsg, Msg is set to net.Addr
Source Files ¶
Click to show internal directories.
Click to hide internal directories.