Documentation ¶
Index ¶
- type Router
- func (r *Router) CleanupGateway(gatewayID string)
- func (r *Router) Connect() error
- func (r *Router) Disconnect() error
- func (r *Router) PublishStatus(message *types.StatusMessage) error
- func (r *Router) PublishUplink(message *types.UplinkMessage) error
- func (r *Router) SubscribeDownlink(gatewayID string) (<-chan *types.DownlinkMessage, error)
- func (r *Router) UnsubscribeDownlink(gatewayID string) error
- type RouterConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
Router side of the bridge
func (*Router) CleanupGateway ¶
CleanupGateway cleans up gateway clients that are no longer needed
func (*Router) Disconnect ¶
Disconnect from the TTN Router and clean up gateway connections
func (*Router) PublishStatus ¶
func (r *Router) PublishStatus(message *types.StatusMessage) error
PublishStatus publishes status messages to the TTN Router
func (*Router) PublishUplink ¶
func (r *Router) PublishUplink(message *types.UplinkMessage) error
PublishUplink publishes uplink messages to the TTN Router
func (*Router) SubscribeDownlink ¶
func (r *Router) SubscribeDownlink(gatewayID string) (<-chan *types.DownlinkMessage, error)
SubscribeDownlink handles downlink messages for the given gateway ID
func (*Router) UnsubscribeDownlink ¶
UnsubscribeDownlink should unsubscribe from downlink, but in practice just disconnects the entire gateway
type RouterConfig ¶
RouterConfig contains configuration for the TTN Router
Click to show internal directories.
Click to hide internal directories.