Skip to content

Latest commit

 

History

History
 
 

netrpc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

netrpc

Reconnectable net/rpc client.

Getting Started

var client = netprc.NewClient(addr)
func CalculateCart(cart *Cart) (*Cart, error) {
        var result Cart
        if err := client.Call("offer.CalculateCart", cart, &result); err != nil {
                return nil, err
        }
        return &result, nil
}