rpc

package
v0.0.0-...-71d5ba4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ServerPkg string
	// contains filtered or unexported fields
}

func (*Client) Call

func (c *Client) Call(method string, args interface{}, reply interface{}) error

func (*Client) Close

func (c *Client) Close()

func (*Client) Connect

func (c *Client) Connect(appName, pkg, serverPkg string, address []string)

type Server

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

func (*Server) Close

func (s *Server) Close()

func (*Server) Listen

func (s *Server) Listen(appName, pkg string, port int, onInit func(server *Server))

func (*Server) RegisterFunction

func (s *Server) RegisterFunction(name string, fn interface{})

Jump to

Keyboard shortcuts

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