handler

package
v0.0.0-...-9a529fd Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2017 License: MIT Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(netAddr string) (core.AuthHandlerClient, error)

NewClient instantiates a new core.handler client

Types

type Components

type Components struct {
	Broker     core.AuthBrokerClient
	Ctx        log.Interface
	DevStorage DevStorage
	PktStorage PktStorage
	AppAdapter core.AppClient
}

Components is used to make handler instantiation easier

type DevStorage

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

DevStorage gives a facade to manipulate the handler devices database

func NewDevStorage

func NewDevStorage(name string) (DevStorage, error)

NewDevStorage creates a new Device Storage for handler

type Interface

type Interface interface {
	core.HandlerServer
	core.HandlerManagerServer
	Start() error
}

Interface defines the Handler interface

func New

func New(c Components, o Options) Interface

New construct a new Handler

type Options

type Options struct {
	PublicNetAddr          string // Net Address used to communicate with the handler from the outside
	PrivateNetAddr         string // Net Address the handler listens on for internal communications
	PrivateNetAddrAnnounce string // Net Address the handler announces to brokers for internal communications
	ProcessedQueueSize     uint   // The maximum number of appEUI + devEUI the handler can process at the same time
}

Options is used to make handler instantiation easier

type PktStorage

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

PktStorage gives a facade to manipulate the handler packets database

func NewPktStorage

func NewPktStorage(name string, size uint) (PktStorage, error)

NewPktStorage creates a new PktStorage

Jump to

Keyboard shortcuts

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