router

package
v0.0.0-...-7fce639 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrkStorage

type BrkStorage interface {
	// contains filtered or unexported methods
}

BrkStorage gives a facade to manipulate the router's brokers

func NewBrkStorage

func NewBrkStorage(name string, delay time.Duration) (BrkStorage, error)

NewBrkStorage creates a new internal storage for the router

type Components

type Components struct {
	DutyManager dutycycle.DutyManager
	Brokers     []core.BrokerClient
	Ctx         log.Interface
	BrkStorage  BrkStorage
	GtwStorage  GtwStorage
}

Components defines a structure to make the instantiation easier to read

type GtwStorage

type GtwStorage interface {
	// contains filtered or unexported methods
}

GtwStorage gives a facade to manipulate the router's gateways data

func NewGtwStorage

func NewGtwStorage(name string) (GtwStorage, error)

NewGtwStorage creates a new internal storage for the router

type Options

type Options struct {
	NetAddr string
	Region  string
}

Options defines a structure to make the instantiation easier to read

type Server

type Server interface {
	core.RouterServer
	Start() error
}

Server defines the Router Server interface

func New

func New(c Components, o Options) Server

New constructs a new router

Jump to

Keyboard shortcuts

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