rpcman

package module
v0.0.0-...-9640319 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2014 License: MIT Imports: 6 Imported by: 0

README

rpcman

RPC between a Go client and Python server using ØMQ.

Needed somewhere to store this example.

Dependencies

ØMQ and the bindings for go and python.

How to

Install the go package

go get github.com/fjukstad/rpcman

Test it by cloning down the repo and running

python server.py

and

go run test/test.go 

TODO

Make a python lib out of it

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCMan

type RPCMan struct {
	Context  *zmq.Context
	ServAddr []string
	Socket   *zmq.Socket
	// contains filtered or unexported fields
}

func Init

func Init(addrs []string) (*RPCMan, error)

func (RPCMan) Call

func (rpc RPCMan) Call(method string, args ...interface{}) (interface{}, error)

func (RPCMan) Close

func (rpc RPCMan) Close()

type Request

type Request struct {
	Method string
	Args   interface{}
}

type Response

type Response struct {
	Response interface{}
	Status   int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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