rpc

package
v0.0.0-...-b26f8fd Latest Latest
Warning

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

Go to latest
Published: May 24, 2016 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallResult

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

type Client

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

func NewGobClient

func NewGobClient(addr string) (Client, error)

type GobClient

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

func (*GobClient) Call

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

func (*GobClient) Close

func (c *GobClient) Close() error

type GobServer

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

func NewGobServer

func NewGobServer(addr string) *GobServer

func (*GobServer) ListenAndServe

func (s *GobServer) ListenAndServe() error

func (*GobServer) Register

func (s *GobServer) Register(rcvr interface{}) error

func (*GobServer) RegisterName

func (s *GobServer) RegisterName(name string, rcvr interface{}) error

type Server

type Server interface {
	ListenAndServe() error
	Register(rcvr interface{}) error
	RegisterName(name string, rcvr interface{}) error
}

Jump to

Keyboard shortcuts

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