router

package
Version: v0.0.0-...-986d81d Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

Router controls how quantum packets are routed to their destination.

func New

func New(cfg *common.Config, store datastore.Datastore) *Router

New returns a Router struct based on the passed in configuration and key/value store.

func (*Router) Resolve

func (rt *Router) Resolve(destination net.IP) (*common.Mapping, bool)

Resolve takes the passed in destination and returns the corresponding mapping in the quantum network.

Source Files

Jump to

Keyboard shortcuts

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