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