github.com/goplus/gossa@v0.3.25/pkg/net/rpc/go114_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.14,!go1.15 4 5 package rpc 6 7 import ( 8 q "net/rpc" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "rpc", 19 Path: "net/rpc", 20 Deps: map[string]string{ 21 "bufio": "bufio", 22 "encoding/gob": "gob", 23 "errors": "errors", 24 "fmt": "fmt", 25 "go/token": "token", 26 "html/template": "template", 27 "io": "io", 28 "log": "log", 29 "net": "net", 30 "net/http": "http", 31 "reflect": "reflect", 32 "sort": "sort", 33 "strings": "strings", 34 "sync": "sync", 35 }, 36 Interfaces: map[string]reflect.Type{ 37 "ClientCodec": reflect.TypeOf((*q.ClientCodec)(nil)).Elem(), 38 "ServerCodec": reflect.TypeOf((*q.ServerCodec)(nil)).Elem(), 39 }, 40 NamedTypes: map[string]gossa.NamedType{ 41 "Call": {reflect.TypeOf((*q.Call)(nil)).Elem(), "", "done"}, 42 "Client": {reflect.TypeOf((*q.Client)(nil)).Elem(), "", "Call,Close,Go,input,send"}, 43 "Request": {reflect.TypeOf((*q.Request)(nil)).Elem(), "", ""}, 44 "Response": {reflect.TypeOf((*q.Response)(nil)).Elem(), "", ""}, 45 "Server": {reflect.TypeOf((*q.Server)(nil)).Elem(), "", "Accept,HandleHTTP,Register,RegisterName,ServeCodec,ServeConn,ServeHTTP,ServeRequest,freeRequest,freeResponse,getRequest,getResponse,readRequest,readRequestHeader,register,sendResponse"}, 46 "ServerError": {reflect.TypeOf((*q.ServerError)(nil)).Elem(), "Error", ""}, 47 }, 48 AliasTypes: map[string]reflect.Type{}, 49 Vars: map[string]reflect.Value{ 50 "DefaultServer": reflect.ValueOf(&q.DefaultServer), 51 "ErrShutdown": reflect.ValueOf(&q.ErrShutdown), 52 }, 53 Funcs: map[string]reflect.Value{ 54 "Accept": reflect.ValueOf(q.Accept), 55 "Dial": reflect.ValueOf(q.Dial), 56 "DialHTTP": reflect.ValueOf(q.DialHTTP), 57 "DialHTTPPath": reflect.ValueOf(q.DialHTTPPath), 58 "HandleHTTP": reflect.ValueOf(q.HandleHTTP), 59 "NewClient": reflect.ValueOf(q.NewClient), 60 "NewClientWithCodec": reflect.ValueOf(q.NewClientWithCodec), 61 "NewServer": reflect.ValueOf(q.NewServer), 62 "Register": reflect.ValueOf(q.Register), 63 "RegisterName": reflect.ValueOf(q.RegisterName), 64 "ServeCodec": reflect.ValueOf(q.ServeCodec), 65 "ServeConn": reflect.ValueOf(q.ServeConn), 66 "ServeRequest": reflect.ValueOf(q.ServeRequest), 67 }, 68 TypedConsts: map[string]gossa.TypedConst{}, 69 UntypedConsts: map[string]gossa.UntypedConst{ 70 "DefaultDebugPath": {"untyped string", constant.MakeString(string(q.DefaultDebugPath))}, 71 "DefaultRPCPath": {"untyped string", constant.MakeString(string(q.DefaultRPCPath))}, 72 }, 73 }) 74 }