You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
537 B

package commCloud
import (
"GoClouds/cloud"
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
)
const (
RPCHostCode = 1
)
func NewReq(method string, ipr ...string) (*hbtp.Request, error) {
return cloud.NewReq(RPCHostCode, method, ipr...)
}
func DoJson(method string, in, out interface{}, hd ...map[string]interface{}) error {
return cloud.DoJson(RPCHostCode, method, in, out, hd...)
}
func DoString(method string, in interface{}, hd ...hbtp.Mp) (int, []byte, error) {
return cloud.DoString(RPCHostCode, method, in, hd...)
}