Documentation
¶
Index ¶
- Variables
- 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 CallRpc(address string, method string, args any, reply any) error
- func Close()
- func HttpCalcItem(w http.ResponseWriter, r *http.Request)
- func HttpListRouters(w http.ResponseWriter, r *http.Request)
- func Load(name string) error
- func Mount(host string, services any) (map[string]et.Json, error)
- func Start(port int) error
- type Package
- type Solver
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorRpcNotConnected = errors.New("rpc not connected")
)
Functions ¶
func CallRpc ¶ added in v1.0.12
* * CallRpc: Calls a remote procedure * @param address string, method string, args any, reply any * @return error *
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 HttpListRouters ¶ added in v1.0.11
func HttpListRouters(w http.ResponseWriter, r *http.Request)
* * HttpListRouters * @param w http.ResponseWriter * @param r *http.Request *
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.