Documentation ¶
Index ¶
- Constants
- func Checkfile() *checkfile
- func Exec() *lexec
- func File() *file
- func FileMove(src, trg string) error
- func Forward(targetaddr, network, listenaddr string, acceptCIDRs []string) (closef func(), msg_chan chan ForwardMsg)
- func ForwardUdp(targetaddr, network, 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 RZip() *rZip
- func Rand() *random
- func Zip() *lzip
- type Filel
- type ForwardMsg
Constants ¶
View Source
const ( ErrorMsg = iota AcceptMsg DenyMsg LisnMsg )
Variables ¶
This section is empty.
Functions ¶
func Forward ¶ added in v0.3.36
func Forward(targetaddr, network, listenaddr string, acceptCIDRs []string) (closef func(), msg_chan chan ForwardMsg)
"tcp", "tcp4", "tcp6", "unix" or "unixpacket"
func ForwardUdp ¶ added in v0.28.20240411191949
func ForwardUdp(targetaddr, network, listenaddr string, acceptCIDRs []string) (closef func(), msg_chan chan ForwardMsg)
func MasterDomain ¶ added in v0.3.36
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 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.