rpc

package
v0.0.0-...-4adfca9 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RPC_PORT = "24802"
	RPC_PATH = "/rpc/m/request"
)

Variables

This section is empty.

Functions

func ParseIPAndPort

func ParseIPAndPort(host string) (string, string, error)

func RegisterService

func RegisterService(rcvr interface{}, name string) error

func StartRPCServer

func StartRPCServer()

Types

type Client

type Client struct {
	URL string
}

func NewRPCClient

func NewRPCClient(remoteHost string) *Client

func (Client) Call

func (c Client) Call(method string, args interface{}, reply interface{}) error

Jump to

Keyboard shortcuts

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