Documentation ¶
Index ¶
- Constants
- func CallItem(method string, data et.Json) (et.Item, error)
- func CallItems(method string, data et.Json) (et.Items, error)
- func CallJson(method string, data et.Json) (et.Json, error)
- func CallList(method string, data et.Json) (et.List, error)
- func CallPermitios(method string, data et.Json) (map[string]bool, error)
- func Close()
- func DeleteRouters(host, packageName string) (et.Item, error)
- func GetRouters() (et.Items, error)
- func HttpCallRPC(w http.ResponseWriter, r *http.Request)
- func Mount(services any) error
- func UnMount() error
- type Package
- type Solver
Constants ¶
const ( ERR_PACKAGE_NOT_FOUND = "RPC package not load" ERR_SERVER_NOT_FOUND = "RPC server not found" ERR_METHOD_NOT_FOUND = "Method not found - %s" MSG_PACKAGE_NOT_FOUND = "Package not found" MSG_PACKAGE_DELETE = "Package deleted" MSG_INVALID_RESPONSE = "Invalid response - %s" MSG_NOT_LOAD_CONFIG = "No se pudo cargar la configuración - stage: %s - name: %s" )
const RPC_KEY = "apigateway-rpc"
Variables ¶
This section is empty.
Functions ¶
func CallItem ¶ added in v0.0.4
* * CallItem * @param method string * @param data et.Json * @return et.Item * @return error *
func CallItems ¶ added in v0.0.4
* * CallItems * @param method string * @param data et.Json * @return et.Item * @return error *
func CallJson ¶ added in v0.0.4
* * CallJson * @param method string * @param data et.Json * @return et.Json * @return error *
func CallList ¶ added in v0.0.4
* * CallList * @param method string * @param data et.Json * @return et.List * @return error *
func CallPermitios ¶ added in v0.0.4
* * CallPermitios * @param method string * @param data et.Json * @return map[string]bool * @return error *
func DeleteRouters ¶ added in v0.0.4
* * DeleteRouters * @param host string * @param packageName string * @return et.Item * @return error *
func GetRouters ¶ added in v0.0.4
* * GetRouters * @return et.Items * @return error *
func HttpCallRPC ¶ added in v0.0.4
func HttpCallRPC(w http.ResponseWriter, r *http.Request)
* * HttpCallRPC * @param w http.ResponseWriter * @param r *http.Request *