github.com/goplus/gossa@v0.3.25/pkg/net/http/httptrace/go116_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package httptrace
     6  
     7  import (
     8  	q "net/http/httptrace"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "httptrace",
    18  		Path: "net/http/httptrace",
    19  		Deps: map[string]string{
    20  			"context":           "context",
    21  			"crypto/tls":        "tls",
    22  			"internal/nettrace": "nettrace",
    23  			"net":               "net",
    24  			"net/textproto":     "textproto",
    25  			"reflect":           "reflect",
    26  			"time":              "time",
    27  		},
    28  		Interfaces: map[string]reflect.Type{},
    29  		NamedTypes: map[string]gossa.NamedType{
    30  			"ClientTrace":      {reflect.TypeOf((*q.ClientTrace)(nil)).Elem(), "", "compose,hasNetHooks"},
    31  			"DNSDoneInfo":      {reflect.TypeOf((*q.DNSDoneInfo)(nil)).Elem(), "", ""},
    32  			"DNSStartInfo":     {reflect.TypeOf((*q.DNSStartInfo)(nil)).Elem(), "", ""},
    33  			"GotConnInfo":      {reflect.TypeOf((*q.GotConnInfo)(nil)).Elem(), "", ""},
    34  			"WroteRequestInfo": {reflect.TypeOf((*q.WroteRequestInfo)(nil)).Elem(), "", ""},
    35  		},
    36  		AliasTypes: map[string]reflect.Type{},
    37  		Vars:       map[string]reflect.Value{},
    38  		Funcs: map[string]reflect.Value{
    39  			"ContextClientTrace": reflect.ValueOf(q.ContextClientTrace),
    40  			"WithClientTrace":    reflect.ValueOf(q.WithClientTrace),
    41  		},
    42  		TypedConsts:   map[string]gossa.TypedConst{},
    43  		UntypedConsts: map[string]gossa.UntypedConst{},
    44  	})
    45  }