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