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 ¶
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
Click to show internal directories.
Click to hide internal directories.