Documentation
¶
Index ¶
Constants ¶
View Source
const ( ERR_SERVER_NOT_FOUND = "RPC server not found" ERR_METHOD_NOT_FOUND = "Method not found" )
Variables ¶
This section is empty.
Functions ¶
func Call ¶
* * Call * @param method string * @param data et.Json * @return et.Item * @return error *
func GetRouters ¶
* * GetRouters * @return et.Items * @return error *
func HttpCallRPC ¶ added in v1.1.0
func HttpCallRPC(w http.ResponseWriter, r *http.Request)
* * HttpCallRPC * @param w http.ResponseWriter * @param r *http.Request *
Types ¶
type Router ¶
type Router struct {
PackageName string `json:"packageName"`
Host string `json:"host"`
Port int `json:"port"`
Solvers map[string]et.Json `json:"routes"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.