Documentation ¶
Overview ¶
Package mock implements a mock pub/sub provider using the mempubsub driver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { provider.Target provider.Enabler Push *pubsub.Topic Replace *pubsub.Topic UplinkMessage *pubsub.Subscription UplinkNormalized *pubsub.Subscription JoinAccept *pubsub.Subscription DownlinkAck *pubsub.Subscription DownlinkNack *pubsub.Subscription DownlinkSent *pubsub.Subscription DownlinkFailed *pubsub.Subscription DownlinkQueued *pubsub.Subscription DownlinkQueueInvalidated *pubsub.Subscription LocationSolved *pubsub.Subscription ServiceData *pubsub.Subscription // contains filtered or unexported fields }
Connection is a set of mempubsub topics.
func (*Connection) ApplicationPubSubIdentifiers ¶
func (c *Connection) ApplicationPubSubIdentifiers() *ttnpb.ApplicationPubSubIdentifiers
ApplicationPubSubIdentifiers returns the identifiers of the connection.
type ConnectionWithError ¶
type ConnectionWithError struct { *Connection // contains filtered or unexported fields }
ConnectionWithError is an connection wrapped with an error.
type Impl ¶
type Impl struct { OpenConnectionCh chan *ConnectionWithError ShutdownCh chan *ConnectionWithError }
Impl is the mock provider implementation.
Click to show internal directories.
Click to hide internal directories.