Files
moxa/stdlib/go1_11_net_rpc.go
Ludovic Fernandez 7e07a183ed chore: support go1.11 and go 1.12. (#130)
* feat: support go1.11 and go 1.12.

* chore: generate.

* fix: build constraint.

* exclude importer.For

* generate go 1.11
2019-03-19 22:08:17 +01:00

44 lines
1.7 KiB
Go

// +build go1.11,!go1.12
package stdlib
// Code generated by 'goexports net/rpc'. DO NOT EDIT.
import (
"net/rpc"
"reflect"
)
func init() {
Value["net/rpc"] = map[string]reflect.Value{
// function, constant and variable definitions
"Accept": reflect.ValueOf(rpc.Accept),
"DefaultDebugPath": reflect.ValueOf(rpc.DefaultDebugPath),
"DefaultRPCPath": reflect.ValueOf(rpc.DefaultRPCPath),
"DefaultServer": reflect.ValueOf(&rpc.DefaultServer).Elem(),
"Dial": reflect.ValueOf(rpc.Dial),
"DialHTTP": reflect.ValueOf(rpc.DialHTTP),
"DialHTTPPath": reflect.ValueOf(rpc.DialHTTPPath),
"ErrShutdown": reflect.ValueOf(&rpc.ErrShutdown).Elem(),
"HandleHTTP": reflect.ValueOf(rpc.HandleHTTP),
"NewClient": reflect.ValueOf(rpc.NewClient),
"NewClientWithCodec": reflect.ValueOf(rpc.NewClientWithCodec),
"NewServer": reflect.ValueOf(rpc.NewServer),
"Register": reflect.ValueOf(rpc.Register),
"RegisterName": reflect.ValueOf(rpc.RegisterName),
"ServeCodec": reflect.ValueOf(rpc.ServeCodec),
"ServeConn": reflect.ValueOf(rpc.ServeConn),
"ServeRequest": reflect.ValueOf(rpc.ServeRequest),
// type definitions
"Call": reflect.ValueOf((*rpc.Call)(nil)),
"Client": reflect.ValueOf((*rpc.Client)(nil)),
"ClientCodec": reflect.ValueOf((*rpc.ClientCodec)(nil)),
"Request": reflect.ValueOf((*rpc.Request)(nil)),
"Response": reflect.ValueOf((*rpc.Response)(nil)),
"Server": reflect.ValueOf((*rpc.Server)(nil)),
"ServerCodec": reflect.ValueOf((*rpc.ServerCodec)(nil)),
"ServerError": reflect.ValueOf((*rpc.ServerError)(nil)),
}
}