1// Code generated by 'yaegi extract net/rpc'. DO NOT EDIT. 2 3// +build go1.16,!go1.17 4 5package stdlib 6 7import ( 8 "go/constant" 9 "go/token" 10 "net/rpc" 11 "reflect" 12) 13 14func init() { 15 Symbols["net/rpc/rpc"] = map[string]reflect.Value{ 16 // function, constant and variable definitions 17 "Accept": reflect.ValueOf(rpc.Accept), 18 "DefaultDebugPath": reflect.ValueOf(constant.MakeFromLiteral("\"/debug/rpc\"", token.STRING, 0)), 19 "DefaultRPCPath": reflect.ValueOf(constant.MakeFromLiteral("\"/_goRPC_\"", token.STRING, 0)), 20 "DefaultServer": reflect.ValueOf(&rpc.DefaultServer).Elem(), 21 "Dial": reflect.ValueOf(rpc.Dial), 22 "DialHTTP": reflect.ValueOf(rpc.DialHTTP), 23 "DialHTTPPath": reflect.ValueOf(rpc.DialHTTPPath), 24 "ErrShutdown": reflect.ValueOf(&rpc.ErrShutdown).Elem(), 25 "HandleHTTP": reflect.ValueOf(rpc.HandleHTTP), 26 "NewClient": reflect.ValueOf(rpc.NewClient), 27 "NewClientWithCodec": reflect.ValueOf(rpc.NewClientWithCodec), 28 "NewServer": reflect.ValueOf(rpc.NewServer), 29 "Register": reflect.ValueOf(rpc.Register), 30 "RegisterName": reflect.ValueOf(rpc.RegisterName), 31 "ServeCodec": reflect.ValueOf(rpc.ServeCodec), 32 "ServeConn": reflect.ValueOf(rpc.ServeConn), 33 "ServeRequest": reflect.ValueOf(rpc.ServeRequest), 34 35 // type definitions 36 "Call": reflect.ValueOf((*rpc.Call)(nil)), 37 "Client": reflect.ValueOf((*rpc.Client)(nil)), 38 "ClientCodec": reflect.ValueOf((*rpc.ClientCodec)(nil)), 39 "Request": reflect.ValueOf((*rpc.Request)(nil)), 40 "Response": reflect.ValueOf((*rpc.Response)(nil)), 41 "Server": reflect.ValueOf((*rpc.Server)(nil)), 42 "ServerCodec": reflect.ValueOf((*rpc.ServerCodec)(nil)), 43 "ServerError": reflect.ValueOf((*rpc.ServerError)(nil)), 44 45 // interface wrapper definitions 46 "_ClientCodec": reflect.ValueOf((*_net_rpc_ClientCodec)(nil)), 47 "_ServerCodec": reflect.ValueOf((*_net_rpc_ServerCodec)(nil)), 48 } 49} 50 51// _net_rpc_ClientCodec is an interface wrapper for ClientCodec type 52type _net_rpc_ClientCodec struct { 53 IValue interface{} 54 WClose func() error 55 WReadResponseBody func(a0 interface{}) error 56 WReadResponseHeader func(a0 *rpc.Response) error 57 WWriteRequest func(a0 *rpc.Request, a1 interface{}) error 58} 59 60func (W _net_rpc_ClientCodec) Close() error { 61 return W.WClose() 62} 63func (W _net_rpc_ClientCodec) ReadResponseBody(a0 interface{}) error { 64 return W.WReadResponseBody(a0) 65} 66func (W _net_rpc_ClientCodec) ReadResponseHeader(a0 *rpc.Response) error { 67 return W.WReadResponseHeader(a0) 68} 69func (W _net_rpc_ClientCodec) WriteRequest(a0 *rpc.Request, a1 interface{}) error { 70 return W.WWriteRequest(a0, a1) 71} 72 73// _net_rpc_ServerCodec is an interface wrapper for ServerCodec type 74type _net_rpc_ServerCodec struct { 75 IValue interface{} 76 WClose func() error 77 WReadRequestBody func(a0 interface{}) error 78 WReadRequestHeader func(a0 *rpc.Request) error 79 WWriteResponse func(a0 *rpc.Response, a1 interface{}) error 80} 81 82func (W _net_rpc_ServerCodec) Close() error { 83 return W.WClose() 84} 85func (W _net_rpc_ServerCodec) ReadRequestBody(a0 interface{}) error { 86 return W.WReadRequestBody(a0) 87} 88func (W _net_rpc_ServerCodec) ReadRequestHeader(a0 *rpc.Request) error { 89 return W.WReadRequestHeader(a0) 90} 91func (W _net_rpc_ServerCodec) WriteResponse(a0 *rpc.Response, a1 interface{}) error { 92 return W.WWriteResponse(a0, a1) 93} 94