github.com/goplus/gossa@v0.3.25/pkg/net/go116_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.16,!go1.17 4 5 package net 6 7 import ( 8 q "net" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "net", 19 Path: "net", 20 Deps: map[string]string{ 21 "context": "context", 22 "errors": "errors", 23 "internal/bytealg": "bytealg", 24 "internal/nettrace": "nettrace", 25 "internal/poll": "poll", 26 "internal/singleflight": "singleflight", 27 "io": "io", 28 "os": "os", 29 "runtime": "runtime", 30 "runtime/cgo": "cgo", 31 "sort": "sort", 32 "sync": "sync", 33 "sync/atomic": "atomic", 34 "syscall": "syscall", 35 "time": "time", 36 "unsafe": "unsafe", 37 "vendor/golang.org/x/net/dns/dnsmessage": "dnsmessage", 38 "vendor/golang.org/x/net/route": "route", 39 }, 40 Interfaces: map[string]reflect.Type{ 41 "Addr": reflect.TypeOf((*q.Addr)(nil)).Elem(), 42 "Conn": reflect.TypeOf((*q.Conn)(nil)).Elem(), 43 "Error": reflect.TypeOf((*q.Error)(nil)).Elem(), 44 "Listener": reflect.TypeOf((*q.Listener)(nil)).Elem(), 45 "PacketConn": reflect.TypeOf((*q.PacketConn)(nil)).Elem(), 46 }, 47 NamedTypes: map[string]gossa.NamedType{ 48 "AddrError": {reflect.TypeOf((*q.AddrError)(nil)).Elem(), "", "Error,Temporary,Timeout"}, 49 "Buffers": {reflect.TypeOf((*q.Buffers)(nil)).Elem(), "", "Read,WriteTo,consume"}, 50 "DNSConfigError": {reflect.TypeOf((*q.DNSConfigError)(nil)).Elem(), "", "Error,Temporary,Timeout,Unwrap"}, 51 "DNSError": {reflect.TypeOf((*q.DNSError)(nil)).Elem(), "", "Error,Temporary,Timeout"}, 52 "Dialer": {reflect.TypeOf((*q.Dialer)(nil)).Elem(), "", "Dial,DialContext,deadline,dualStack,fallbackDelay,resolver"}, 53 "Flags": {reflect.TypeOf((*q.Flags)(nil)).Elem(), "String", ""}, 54 "HardwareAddr": {reflect.TypeOf((*q.HardwareAddr)(nil)).Elem(), "String", ""}, 55 "IP": {reflect.TypeOf((*q.IP)(nil)).Elem(), "DefaultMask,Equal,IsGlobalUnicast,IsInterfaceLocalMulticast,IsLinkLocalMulticast,IsLinkLocalUnicast,IsLoopback,IsMulticast,IsUnspecified,MarshalText,Mask,String,To16,To4,matchAddrFamily", "UnmarshalText"}, 56 "IPAddr": {reflect.TypeOf((*q.IPAddr)(nil)).Elem(), "", "Network,String,family,isWildcard,opAddr,sockaddr,toLocal"}, 57 "IPConn": {reflect.TypeOf((*q.IPConn)(nil)).Elem(), "", "ReadFrom,ReadFromIP,ReadMsgIP,SyscallConn,WriteMsgIP,WriteTo,WriteToIP,readFrom,readMsg,writeMsg,writeTo"}, 58 "IPMask": {reflect.TypeOf((*q.IPMask)(nil)).Elem(), "Size,String", ""}, 59 "IPNet": {reflect.TypeOf((*q.IPNet)(nil)).Elem(), "", "Contains,Network,String"}, 60 "Interface": {reflect.TypeOf((*q.Interface)(nil)).Elem(), "", "Addrs,MulticastAddrs"}, 61 "InvalidAddrError": {reflect.TypeOf((*q.InvalidAddrError)(nil)).Elem(), "Error,Temporary,Timeout", ""}, 62 "ListenConfig": {reflect.TypeOf((*q.ListenConfig)(nil)).Elem(), "", "Listen,ListenPacket"}, 63 "MX": {reflect.TypeOf((*q.MX)(nil)).Elem(), "", ""}, 64 "NS": {reflect.TypeOf((*q.NS)(nil)).Elem(), "", ""}, 65 "OpError": {reflect.TypeOf((*q.OpError)(nil)).Elem(), "", "Error,Temporary,Timeout,Unwrap"}, 66 "ParseError": {reflect.TypeOf((*q.ParseError)(nil)).Elem(), "", "Error"}, 67 "Resolver": {reflect.TypeOf((*q.Resolver)(nil)).Elem(), "", "LookupAddr,LookupCNAME,LookupHost,LookupIP,LookupIPAddr,LookupMX,LookupNS,LookupPort,LookupSRV,LookupTXT,dial,exchange,getLookupGroup,goLookupCNAME,goLookupHost,goLookupHostOrder,goLookupIP,goLookupIPCNAMEOrder,goLookupPTR,internetAddrList,lookup,lookupAddr,lookupCNAME,lookupHost,lookupIP,lookupIPAddr,lookupMX,lookupNS,lookupPort,lookupSRV,lookupTXT,preferGo,resolveAddrList,strictErrors,tryOneName"}, 68 "SRV": {reflect.TypeOf((*q.SRV)(nil)).Elem(), "", ""}, 69 "TCPAddr": {reflect.TypeOf((*q.TCPAddr)(nil)).Elem(), "", "Network,String,family,isWildcard,opAddr,sockaddr,toLocal"}, 70 "TCPConn": {reflect.TypeOf((*q.TCPConn)(nil)).Elem(), "", "CloseRead,CloseWrite,ReadFrom,SetKeepAlive,SetKeepAlivePeriod,SetLinger,SetNoDelay,SyscallConn,readFrom"}, 71 "TCPListener": {reflect.TypeOf((*q.TCPListener)(nil)).Elem(), "", "Accept,AcceptTCP,Addr,Close,File,SetDeadline,SyscallConn,accept,close,file,ok"}, 72 "UDPAddr": {reflect.TypeOf((*q.UDPAddr)(nil)).Elem(), "", "Network,String,family,isWildcard,opAddr,sockaddr,toLocal"}, 73 "UDPConn": {reflect.TypeOf((*q.UDPConn)(nil)).Elem(), "", "ReadFrom,ReadFromUDP,ReadMsgUDP,SyscallConn,WriteMsgUDP,WriteTo,WriteToUDP,readFrom,readMsg,writeMsg,writeTo"}, 74 "UnixAddr": {reflect.TypeOf((*q.UnixAddr)(nil)).Elem(), "", "Network,String,family,isWildcard,opAddr,sockaddr,toLocal"}, 75 "UnixConn": {reflect.TypeOf((*q.UnixConn)(nil)).Elem(), "", "CloseRead,CloseWrite,ReadFrom,ReadFromUnix,ReadMsgUnix,SyscallConn,WriteMsgUnix,WriteTo,WriteToUnix,readFrom,readMsg,writeMsg,writeTo"}, 76 "UnixListener": {reflect.TypeOf((*q.UnixListener)(nil)).Elem(), "", "Accept,AcceptUnix,Addr,Close,File,SetDeadline,SetUnlinkOnClose,SyscallConn,accept,close,file,ok"}, 77 "UnknownNetworkError": {reflect.TypeOf((*q.UnknownNetworkError)(nil)).Elem(), "Error,Temporary,Timeout", ""}, 78 }, 79 AliasTypes: map[string]reflect.Type{}, 80 Vars: map[string]reflect.Value{ 81 "DefaultResolver": reflect.ValueOf(&q.DefaultResolver), 82 "ErrClosed": reflect.ValueOf(&q.ErrClosed), 83 "ErrWriteToConnected": reflect.ValueOf(&q.ErrWriteToConnected), 84 "IPv4allrouter": reflect.ValueOf(&q.IPv4allrouter), 85 "IPv4allsys": reflect.ValueOf(&q.IPv4allsys), 86 "IPv4bcast": reflect.ValueOf(&q.IPv4bcast), 87 "IPv4zero": reflect.ValueOf(&q.IPv4zero), 88 "IPv6interfacelocalallnodes": reflect.ValueOf(&q.IPv6interfacelocalallnodes), 89 "IPv6linklocalallnodes": reflect.ValueOf(&q.IPv6linklocalallnodes), 90 "IPv6linklocalallrouters": reflect.ValueOf(&q.IPv6linklocalallrouters), 91 "IPv6loopback": reflect.ValueOf(&q.IPv6loopback), 92 "IPv6unspecified": reflect.ValueOf(&q.IPv6unspecified), 93 "IPv6zero": reflect.ValueOf(&q.IPv6zero), 94 }, 95 Funcs: map[string]reflect.Value{ 96 "CIDRMask": reflect.ValueOf(q.CIDRMask), 97 "Dial": reflect.ValueOf(q.Dial), 98 "DialIP": reflect.ValueOf(q.DialIP), 99 "DialTCP": reflect.ValueOf(q.DialTCP), 100 "DialTimeout": reflect.ValueOf(q.DialTimeout), 101 "DialUDP": reflect.ValueOf(q.DialUDP), 102 "DialUnix": reflect.ValueOf(q.DialUnix), 103 "FileConn": reflect.ValueOf(q.FileConn), 104 "FileListener": reflect.ValueOf(q.FileListener), 105 "FilePacketConn": reflect.ValueOf(q.FilePacketConn), 106 "IPv4": reflect.ValueOf(q.IPv4), 107 "IPv4Mask": reflect.ValueOf(q.IPv4Mask), 108 "InterfaceAddrs": reflect.ValueOf(q.InterfaceAddrs), 109 "InterfaceByIndex": reflect.ValueOf(q.InterfaceByIndex), 110 "InterfaceByName": reflect.ValueOf(q.InterfaceByName), 111 "Interfaces": reflect.ValueOf(q.Interfaces), 112 "JoinHostPort": reflect.ValueOf(q.JoinHostPort), 113 "Listen": reflect.ValueOf(q.Listen), 114 "ListenIP": reflect.ValueOf(q.ListenIP), 115 "ListenMulticastUDP": reflect.ValueOf(q.ListenMulticastUDP), 116 "ListenPacket": reflect.ValueOf(q.ListenPacket), 117 "ListenTCP": reflect.ValueOf(q.ListenTCP), 118 "ListenUDP": reflect.ValueOf(q.ListenUDP), 119 "ListenUnix": reflect.ValueOf(q.ListenUnix), 120 "ListenUnixgram": reflect.ValueOf(q.ListenUnixgram), 121 "LookupAddr": reflect.ValueOf(q.LookupAddr), 122 "LookupCNAME": reflect.ValueOf(q.LookupCNAME), 123 "LookupHost": reflect.ValueOf(q.LookupHost), 124 "LookupIP": reflect.ValueOf(q.LookupIP), 125 "LookupMX": reflect.ValueOf(q.LookupMX), 126 "LookupNS": reflect.ValueOf(q.LookupNS), 127 "LookupPort": reflect.ValueOf(q.LookupPort), 128 "LookupSRV": reflect.ValueOf(q.LookupSRV), 129 "LookupTXT": reflect.ValueOf(q.LookupTXT), 130 "ParseCIDR": reflect.ValueOf(q.ParseCIDR), 131 "ParseIP": reflect.ValueOf(q.ParseIP), 132 "ParseMAC": reflect.ValueOf(q.ParseMAC), 133 "Pipe": reflect.ValueOf(q.Pipe), 134 "ResolveIPAddr": reflect.ValueOf(q.ResolveIPAddr), 135 "ResolveTCPAddr": reflect.ValueOf(q.ResolveTCPAddr), 136 "ResolveUDPAddr": reflect.ValueOf(q.ResolveUDPAddr), 137 "ResolveUnixAddr": reflect.ValueOf(q.ResolveUnixAddr), 138 "SplitHostPort": reflect.ValueOf(q.SplitHostPort), 139 }, 140 TypedConsts: map[string]gossa.TypedConst{ 141 "FlagBroadcast": {reflect.TypeOf(q.FlagBroadcast), constant.MakeInt64(int64(q.FlagBroadcast))}, 142 "FlagLoopback": {reflect.TypeOf(q.FlagLoopback), constant.MakeInt64(int64(q.FlagLoopback))}, 143 "FlagMulticast": {reflect.TypeOf(q.FlagMulticast), constant.MakeInt64(int64(q.FlagMulticast))}, 144 "FlagPointToPoint": {reflect.TypeOf(q.FlagPointToPoint), constant.MakeInt64(int64(q.FlagPointToPoint))}, 145 "FlagUp": {reflect.TypeOf(q.FlagUp), constant.MakeInt64(int64(q.FlagUp))}, 146 }, 147 UntypedConsts: map[string]gossa.UntypedConst{ 148 "IPv4len": {"untyped int", constant.MakeInt64(int64(q.IPv4len))}, 149 "IPv6len": {"untyped int", constant.MakeInt64(int64(q.IPv6len))}, 150 }, 151 }) 152 }