Documentation
¶
Index ¶
- Constants
- Variables
- func CppClient(path, module, itfFullPkg string, itf *smn_pglang.ItfDef) error
- func CppFillPb(pbName string, f *smn_pglang.VarDef, varName string, ...)
- func CppServer(path, module, itfFullPkg string, itf *smn_pglang.ItfDef) error
- func GoAsynClient(path, module, itfFullPkg string, itf *smn_pglang.ItfDef) error
- func GoClient(path, module, itfFullPkg string, itf *smn_pglang.ItfDef) error
- func GoSvr(path, module, itfFullPkg string, itf *smn_pglang.ItfDef) error
- func Write(target, path, module, itfFullPkg string, itf *smn_pglang.ItfDef) error
- type FWriteRPC
Constants ¶
View Source
const ( // NetDotConn net.conn . NetDotConn = "net.Conn" // SmnBase smn_base . SmnBase = "github.com/ProtossGenius/SureMoonNet/pb/smn_base" // SmnRPC smn_rpc . SmnRPC = "github.com/ProtossGenius/smnric/net_libs/smn_rpc" // SmnConnFunc . SmnConnFunc = "smn_rpc.ConnFunc" )
Variables ¶
View Source
var ErrAsynClientHaveConn = errors.New("AsynClint not support user-def conn")
ErrAsynClientHaveConn .
View Source
var GoAsynClientRoutines = 10
GoAsynClientRoutines how many routines to deal with result.
View Source
var TargetMap = map[string]FWriteRPC{ "go_s": GoSvr, "go_c": GoClient, "go_ac": GoAsynClient, "cpp_c": CppClient, "cpp_s": CppServer, }
TargetMap from target to func.
Functions ¶
func CppFillPb ¶
func CppFillPb(pbName string, f *smn_pglang.VarDef, varName string, writef func(f string, a ...interface{}))
CppFillPb .
func CppServer ¶
func CppServer(path, module, itfFullPkg string, itf *smn_pglang.ItfDef) error
CppServer SMNRPC server code product.
func GoAsynClient ¶
func GoAsynClient(path, module, itfFullPkg string, itf *smn_pglang.ItfDef) error
GoAsynClient interface to go client RPC code.
func GoClient ¶
func GoClient(path, module, itfFullPkg string, itf *smn_pglang.ItfDef) error
GoClient interface to go client RPC code.
Types ¶
Click to show internal directories.
Click to hide internal directories.