testing

package
v0.0.0-...-b2761b6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2014 License: GPL-3.0, GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package testing contains simple test implementations of some broker interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestBrokerConfig

type TestBrokerConfig struct {
	ConfigSessionQueueSize uint
	ConfigBrokerQueueSize  uint
}

Test implementation of BrokerConfig.

func (*TestBrokerConfig) BrokerQueueSize

func (tbc *TestBrokerConfig) BrokerQueueSize() uint

func (*TestBrokerConfig) SessionQueueSize

func (tbc *TestBrokerConfig) SessionQueueSize() uint

type TestBrokerSession

type TestBrokerSession struct {
	DeviceId  string
	Exchanges chan broker.Exchange
	LevelsMap broker.LevelsMap
	// contains filtered or unexported fields
}

Test implementation of BrokerSession.

func (*TestBrokerSession) DeviceIdentifier

func (tbs *TestBrokerSession) DeviceIdentifier() string

func (*TestBrokerSession) ExchangeScratchArea

func (tbs *TestBrokerSession) ExchangeScratchArea() *broker.ExchangesScratchArea

func (*TestBrokerSession) Levels

func (tbs *TestBrokerSession) Levels() broker.LevelsMap

func (*TestBrokerSession) SessionChannel

func (tbs *TestBrokerSession) SessionChannel() <-chan broker.Exchange

Jump to

Keyboard shortcuts

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