Documentation ¶
Overview ¶
Package mock provides mock implementation of necessary NS interfaces for testing.
Index ¶
- type NS
- func (ns *NS) HandleUplink(ctx context.Context, msg *ttnpb.UplinkMessage) (*types.Empty, error)
- func (ns *NS) ReportTxAcknowledgment(ctx context.Context, msg *ttnpb.GatewayTxAcknowledgment) (*types.Empty, error)
- func (ns *NS) TxAck() <-chan *ttnpb.GatewayTxAcknowledgment
- func (ns *NS) Up() <-chan *ttnpb.UplinkMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NS ¶
type NS struct {
// contains filtered or unexported fields
}
NS is a mock NS for GS tests.
func (*NS) HandleUplink ¶
HandleUplink implements ttnpb.GsNsServer
func (*NS) ReportTxAcknowledgment ¶
func (ns *NS) ReportTxAcknowledgment(ctx context.Context, msg *ttnpb.GatewayTxAcknowledgment) (*types.Empty, error)
ReportTxAcknowledgment implements ttnpb.GsNsServer
func (*NS) TxAck ¶
func (ns *NS) TxAck() <-chan *ttnpb.GatewayTxAcknowledgment
TxAck returns the TxAck channel.
Click to show internal directories.
Click to hide internal directories.