rpcutils

package
v0.0.0-...-88aa921 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RPC_CLIENT_SIZE = 1

Functions

func SetDialTimeout

func SetDialTimeout(timeout int)

Types

type Client

type Client interface {
	Close() error
	Call(serviceMethod string, args interface{}, reply interface{}) error
}

func GetCachedClient

func GetCachedClient(addr string) (Client, error)

GetCachedClient createa or gets a cached Client.

func NewReconnectingClient

func NewReconnectingClient(addr string) (Client, error)

NewReconnectingClient creates a client that reuses the same connection and does not close the underlying connection unless an error occurs. If an RPC call results in an RPC error the underlying connection is reset.

Jump to

Keyboard shortcuts

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