Documentation
¶
Index ¶
- Constants
- func CallItem(method string, args et.Json) (et.Item, error)
- func CallItems(method string, args et.Json) (et.Items, error)
- func CallJson(method string, args et.Json) (et.Json, error)
- func CallList(method string, args et.Json) (et.List, error)
- func Close()
- func HttpCalcItem(w http.ResponseWriter, r *http.Request)
- func ListRouters(w http.ResponseWriter, r *http.Request)
- func Load(name string) error
- func Mount(services any) error
- func Start() error
- func UnMountPackage(name string) error
- type Package
- type Solver
- type Storage
Constants ¶
View Source
const ( ERR_PACKAGE_NOT_FOUND = "RPC package not load - %s" ERR_SERVER_NOT_FOUND = "RPC server not found" ERR_METHOD_NOT_FOUND = "RPC 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" )
Variables ¶
This section is empty.
Functions ¶
func HttpCalcItem ¶ added in v0.1.0
func HttpCalcItem(w http.ResponseWriter, r *http.Request)
* * HttpCallItem * @param w http.ResponseWriter * @param r *http.Request *
func ListRouters ¶ added in v0.1.0
func ListRouters(w http.ResponseWriter, r *http.Request)
* * ListRouters * @param w http.ResponseWriter * @param r *http.Request *
func UnMountPackage ¶ added in v0.1.1
* * UnMountPackage * @param name string * @return error *
Types ¶
type Package ¶
type Package struct {
Name string `json:"name"`
Host string `json:"host"`
Port int `json:"port"`
Solvers []*Solver `json:"routes"`
// contains filtered or unexported fields
}
func NewPackage ¶ added in v0.1.16
* * NewPackage * @param name string, host string, port int * @return *Package *
Click to show internal directories.
Click to hide internal directories.