rpc

package
v0.0.0-...-aae2ccf Latest Latest
Warning

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

Go to latest
Published: May 3, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Network string
	Address string
}

func ParseAddress

func ParseAddress(str string) (Address, error)

func (Address) String

func (a Address) String() string

type Client

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

func NewClient

func NewClient(address Address) (*Client, error)

func (*Client) Address

func (c *Client) Address() Address

func (*Client) Call

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

func (*Client) Close

func (c *Client) Close() error

type NopValue

type NopValue struct{}

type Server

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

func NewServer

func NewServer(name string, address Address, receiver interface{}) (*Server, error)

func (*Server) Address

func (s *Server) Address() Address

func (*Server) Run

func (s *Server) Run()

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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