github.com/goplus/gossa@v0.3.25/pkg/net/go114_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     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  			"math/rand":                              "rand",
    29  			"os":                                     "os",
    30  			"runtime":                                "runtime",
    31  			"runtime/cgo":                            "cgo",
    32  			"sort":                                   "sort",
    33  			"sync":                                   "sync",
    34  			"sync/atomic":                            "atomic",
    35  			"syscall":                                "syscall",
    36  			"time":                                   "time",
    37  			"unsafe":                                 "unsafe",
    38  			"vendor/golang.org/x/net/dns/dnsmessage": "dnsmessage",
    39  			"vendor/golang.org/x/net/route":          "route",
    40  		},
    41  		Interfaces: map[string]reflect.Type{
    42  			"Addr":       reflect.TypeOf((*q.Addr)(nil)).Elem(),
    43  			"Conn":       reflect.TypeOf((*q.Conn)(nil)).Elem(),
    44  			"Error":      reflect.TypeOf((*q.Error)(nil)).Elem(),
    45  			"Listener":   reflect.TypeOf((*q.Listener)(nil)).Elem(),
    46  			"PacketConn": reflect.TypeOf((*q.PacketConn)(nil)).Elem(),
    47  		},
    48  		NamedTypes: map[string]gossa.NamedType{
    49  			"AddrError":           {reflect.TypeOf((*q.AddrError)(nil)).Elem(), "", "Error,Temporary,Timeout"},
    50  			"Buffers":             {reflect.TypeOf((*q.Buffers)(nil)).Elem(), "", "Read,WriteTo,consume"},
    51  			"DNSConfigError":      {reflect.TypeOf((*q.DNSConfigError)(nil)).Elem(), "", "Error,Temporary,Timeout,Unwrap"},
    52  			"DNSError":            {reflect.TypeOf((*q.DNSError)(nil)).Elem(), "", "Error,Temporary,Timeout"},
    53  			"Dialer":              {reflect.TypeOf((*q.Dialer)(nil)).Elem(), "", "Dial,DialContext,deadline,dualStack,fallbackDelay,resolver"},
    54  			"Flags":               {reflect.TypeOf((*q.Flags)(nil)).Elem(), "String", ""},
    55  			"HardwareAddr":        {reflect.TypeOf((*q.HardwareAddr)(nil)).Elem(), "String", ""},
    56  			"IP":                  {reflect.TypeOf((*q.IP)(nil)).Elem(), "DefaultMask,Equal,IsGlobalUnicast,IsInterfaceLocalMulticast,IsLinkLocalMulticast,IsLinkLocalUnicast,IsLoopback,IsMulticast,IsUnspecified,MarshalText,Mask,String,To16,To4,matchAddrFamily", "UnmarshalText"},
    57  			"IPAddr":              {reflect.TypeOf((*q.IPAddr)(nil)).Elem(), "", "Network,String,family,isWildcard,opAddr,sockaddr,toLocal"},
    58  			"IPConn":              {reflect.TypeOf((*q.IPConn)(nil)).Elem(), "", "ReadFrom,ReadFromIP,ReadMsgIP,SyscallConn,WriteMsgIP,WriteTo,WriteToIP,readFrom,readMsg,writeMsg,writeTo"},
    59  			"IPMask":              {reflect.TypeOf((*q.IPMask)(nil)).Elem(), "Size,String", ""},
    60  			"IPNet":               {reflect.TypeOf((*q.IPNet)(nil)).Elem(), "", "Contains,Network,String"},
    61  			"Interface":           {reflect.TypeOf((*q.Interface)(nil)).Elem(), "", "Addrs,MulticastAddrs"},
    62  			"InvalidAddrError":    {reflect.TypeOf((*q.InvalidAddrError)(nil)).Elem(), "Error,Temporary,Timeout", ""},
    63  			"ListenConfig":        {reflect.TypeOf((*q.ListenConfig)(nil)).Elem(), "", "Listen,ListenPacket"},
    64  			"MX":                  {reflect.TypeOf((*q.MX)(nil)).Elem(), "", ""},
    65  			"NS":                  {reflect.TypeOf((*q.NS)(nil)).Elem(), "", ""},
    66  			"OpError":             {reflect.TypeOf((*q.OpError)(nil)).Elem(), "", "Error,Temporary,Timeout,Unwrap"},
    67  			"ParseError":          {reflect.TypeOf((*q.ParseError)(nil)).Elem(), "", "Error"},
    68  			"Resolver":            {reflect.TypeOf((*q.Resolver)(nil)).Elem(), "", "LookupAddr,LookupCNAME,LookupHost,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"},
    69  			"SRV":                 {reflect.TypeOf((*q.SRV)(nil)).Elem(), "", ""},
    70  			"TCPAddr":             {reflect.TypeOf((*q.TCPAddr)(nil)).Elem(), "", "Network,String,family,isWildcard,opAddr,sockaddr,toLocal"},
    71  			"TCPConn":             {reflect.TypeOf((*q.TCPConn)(nil)).Elem(), "", "CloseRead,CloseWrite,ReadFrom,SetKeepAlive,SetKeepAlivePeriod,SetLinger,SetNoDelay,SyscallConn,readFrom"},
    72  			"TCPListener":         {reflect.TypeOf((*q.TCPListener)(nil)).Elem(), "", "Accept,AcceptTCP,Addr,Close,File,SetDeadline,SyscallConn,accept,close,file,ok"},
    73  			"UDPAddr":             {reflect.TypeOf((*q.UDPAddr)(nil)).Elem(), "", "Network,String,family,isWildcard,opAddr,sockaddr,toLocal"},
    74  			"UDPConn":             {reflect.TypeOf((*q.UDPConn)(nil)).Elem(), "", "ReadFrom,ReadFromUDP,ReadMsgUDP,SyscallConn,WriteMsgUDP,WriteTo,WriteToUDP,readFrom,readMsg,writeMsg,writeTo"},
    75  			"UnixAddr":            {reflect.TypeOf((*q.UnixAddr)(nil)).Elem(), "", "Network,String,family,isWildcard,opAddr,sockaddr,toLocal"},
    76  			"UnixConn":            {reflect.TypeOf((*q.UnixConn)(nil)).Elem(), "", "CloseRead,CloseWrite,ReadFrom,ReadFromUnix,ReadMsgUnix,SyscallConn,WriteMsgUnix,WriteTo,WriteToUnix,readFrom,readMsg,writeMsg,writeTo"},
    77  			"UnixListener":        {reflect.TypeOf((*q.UnixListener)(nil)).Elem(), "", "Accept,AcceptUnix,Addr,Close,File,SetDeadline,SetUnlinkOnClose,SyscallConn,accept,close,file,ok"},
    78  			"UnknownNetworkError": {reflect.TypeOf((*q.UnknownNetworkError)(nil)).Elem(), "Error,Temporary,Timeout", ""},
    79  		},
    80  		AliasTypes: map[string]reflect.Type{},
    81  		Vars: map[string]reflect.Value{
    82  			"DefaultResolver":            reflect.ValueOf(&q.DefaultResolver),
    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  }