node

package
v0.0.0-...-66bb59c Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeService

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

NodeService Remote Stub

func (*NodeService) Bye

func (ns *NodeService) Bye(addr string, none *struct{}) error

Bye ...

func (*NodeService) Invite

func (ns *NodeService) Invite(nsAddr string, none *struct{}) error

Invite ...

type Server

type Server struct {
	*rpc.Server
	// contains filtered or unexported fields
}

Server ...

func New

func New(selfAddr string) (*Server, error)

New ...

func (*Server) Activate

func (s *Server) Activate()

Activate ...

func (*Server) Close

func (s *Server) Close() error

Close ...

func (*Server) Get

func (s *Server) Get(addr, service string) (rpcutil.Client, error)

Get ...

func (*Server) GetServices

func (s *Server) GetServices(name string) (rpcutil.Clients, error)

GetServices ...

func (*Server) Join

func (s *Server) Join(addr string) error

Join ...

func (*Server) Leave

func (s *Server) Leave(addr string) error

Leave ...

func (*Server) LeaveAll

func (s *Server) LeaveAll() error

LeaveAll ...

func (*Server) Name

func (s *Server) Name() string

Name ...

func (*Server) Peers

func (s *Server) Peers() []string

Peers ...

func (*Server) Provides

func (s *Server) Provides() []string

Provides ...

func (*Server) Rcvr

func (s *Server) Rcvr() interface{}

Rcvr ...

func (*Server) Register

func (s *Server) Register(svc services.Service) error

Register ...

func (*Server) RegisterName

func (s *Server) RegisterName(name string, svc services.Service) error

RegisterName ...

func (*Server) SelfAddr

func (s *Server) SelfAddr() string

SelfAddr ...

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP ...

func (*Server) SetNSFactory

func (s *Server) SetNSFactory(factory func() (rpcutil.Client, error))

SetNSFactory ...

Jump to

Keyboard shortcuts

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