jrpc

package
v1.0.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 13 Imported by: 0

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 added in v1.0.11

func Call(method string, data et.Json) (et.Item, error)

* * Call * @param method string * @param data et.Json * @return et.Item * @return error *

func Close added in v1.0.11

func Close()

func GetRouters added in v1.0.11

func GetRouters() (et.Items, error)

* * GetRouters * @return et.Items * @return error *

func Load added in v1.0.11

func Load()

* * load *

func Mount added in v1.0.11

func Mount(services any, packageName string) error

* * Mount * @param host string * @param port int * @param service any * @param packageName string *

func StartServer added in v1.0.11

func StartServer()

* * NewServer *

func UnMount added in v1.0.11

func UnMount() error

* * UnMount * @return error *

Types

type Router added in v1.0.11

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
}

func GetSolver added in v1.0.11

func GetSolver(method string) (*Router, error)

* * GetSolver * @param method string * @return *Solver * @return error *

func (*Router) Save added in v1.0.11

func (r *Router) Save() error

* * Save * @return error *

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL