Versions in this module Expand all Collapse all v0 v0.2.0 Jan 19, 2015 Changes in this version + var BootstrapPeers = []Address + var ErrNoPeers = errors.New("no peers") + func Ping(addr Address) bool + type Address string + func (na *Address) RPC(name string, arg, resp interface{}) error + func (na Address) Call(name string, fn func(net.Conn) error) error + type TCPServer struct + func NewTCPServer(addr string) (tcps *TCPServer, err error) + func (tcps *TCPServer) AddPeer(addr Address) error + func (tcps *TCPServer) Address() Address + func (tcps *TCPServer) AddressBook() []Address + func (tcps *TCPServer) Bootstrap() (err error) + func (tcps *TCPServer) Broadcast(name string, arg, resp interface{}) + func (tcps *TCPServer) RandomPeer() Address + func (tcps *TCPServer) RegisterRPC(name string, fn interface{}) error + func (tcps *TCPServer) RemovePeer(addr Address) error