link

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(name string, params core.Params) (core.Link, error)

Types

type Router

type Router struct {
	Name string

	*core.Connector
	*sync.Mutex
	// contains filtered or unexported fields
}

func (*Router) AddRoute

func (r *Router) AddRoute(routeKey string, routeDst core.Link) error

func (*Router) ConnectTo

func (r *Router) ConnectTo(core.Link) error

func (*Router) DropRoute

func (r *Router) DropRoute(routeKey string) (core.Link, error)

func (*Router) GetRoutes

func (r *Router) GetRoutes() map[string]core.Link

func (*Router) Recv

func (r *Router) Recv(msg *core.Message) error

func (*Router) RouteTo

func (r *Router) RouteTo(routes map[string]core.Link) error

Jump to

Keyboard shortcuts

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