github.com/goplus/igop@v0.25.0/pkg/net/rpc/jsonrpc/go115_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package jsonrpc
     6  
     7  import (
     8  	q "net/rpc/jsonrpc"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/igop"
    13  )
    14  
    15  func init() {
    16  	igop.RegisterPackage(&igop.Package{
    17  		Name: "jsonrpc",
    18  		Path: "net/rpc/jsonrpc",
    19  		Deps: map[string]string{
    20  			"encoding/json": "json",
    21  			"errors":        "errors",
    22  			"fmt":           "fmt",
    23  			"io":            "io",
    24  			"net":           "net",
    25  			"net/rpc":       "rpc",
    26  			"sync":          "sync",
    27  		},
    28  		Interfaces: map[string]reflect.Type{},
    29  		NamedTypes: map[string]reflect.Type{},
    30  		AliasTypes: map[string]reflect.Type{},
    31  		Vars:       map[string]reflect.Value{},
    32  		Funcs: map[string]reflect.Value{
    33  			"Dial":           reflect.ValueOf(q.Dial),
    34  			"NewClient":      reflect.ValueOf(q.NewClient),
    35  			"NewClientCodec": reflect.ValueOf(q.NewClientCodec),
    36  			"NewServerCodec": reflect.ValueOf(q.NewServerCodec),
    37  			"ServeConn":      reflect.ValueOf(q.ServeConn),
    38  		},
    39  		TypedConsts:   map[string]igop.TypedConst{},
    40  		UntypedConsts: map[string]igop.UntypedConst{},
    41  	})
    42  }