connection

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

Conn is a connection to a parameter server

func New

func New() *Conn

New creates a new connection.

func (*Conn) Call

func (c *Conn) Call(serviceMethod string, args interface{}, reply interface{}) error

Call make a RPC call.

Call will be blocked until the connection to remote RPC service being established.

func (*Conn) Close

func (c *Conn) Close() error

Close closes the connection.

func (*Conn) Connect

func (c *Conn) Connect(addr string) error

Connect connects the connection to a address.

Jump to

Keyboard shortcuts

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