testing

package
v0.0.0-...-7271f6c Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scenario

type Scenario struct {
	Sender   *identity.Identity
	Receiver *identity.Identity
	Server   *identity.Identity
	Router   routing.Router
}

func CreateScenario

func CreateScenario() (scene Scenario, err error)

type StaticRouter

type StaticRouter struct {
	Keys []*identity.Identity
}

Define a blank router that we can use for testing purposes.

func (*StaticRouter) Lookup

func (t *StaticRouter) Lookup(addr string, typ routing.LookupType) (*identity.Address, error)

func (*StaticRouter) LookupAlias

func (t *StaticRouter) LookupAlias(alias string, typ routing.LookupType) (*identity.Address, error)

func (*StaticRouter) Register

Jump to

Keyboard shortcuts

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