Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { // DevAddrPrefixes returns the DevAddr prefixes for this upstream handler. DevAddrPrefixes() []types.DevAddrPrefix // Setup performs all the preparation necessary to connect the handler to a particular upstream host. Setup(context.Context) error // ConnectGateway informs the upstream handler that a particular gateway is connected to the frontend. ConnectGateway(context.Context, ttnpb.GatewayIdentifiers, *io.Connection) error // HandleUp handles ttnpb.GatewayUplinkMessage. It must not mutate the gateway uplink message. HandleUplink(context.Context, ttnpb.GatewayIdentifiers, ttnpb.EndDeviceIdentifiers, *ttnpb.GatewayUplinkMessage) error // HandleStatus handles ttnpb.GatewayStatus. HandleStatus(context.Context, ttnpb.GatewayIdentifiers, *ttnpb.GatewayStatus) error // HandleTxAck handles ttnpb.TxAcknowledgment. HandleTxAck(context.Context, ttnpb.GatewayIdentifiers, *ttnpb.TxAcknowledgment) error }
Handler represents the upstream handler that connects to an upstream host.
Directories ¶
Path | Synopsis |
---|---|
Package mock provides mock implementation of necessary NS interfaces for testing.
|
Package mock provides mock implementation of necessary NS interfaces for testing. |
Package ns abstracts the V3 Network Server to the upstream.Handler interface.
|
Package ns abstracts the V3 Network Server to the upstream.Handler interface. |
Package packetbroker abstracts the Packet Broker Agent to the upstream.Handler interface.
|
Package packetbroker abstracts the Packet Broker Agent to the upstream.Handler interface. |
Click to show internal directories.
Click to hide internal directories.