Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frontend ¶
type Frontend struct {
Up chan *ttnpb.UplinkMessage
Status chan *ttnpb.GatewayStatus
TxAck chan *ttnpb.TxAcknowledgment
Down chan *ttnpb.DownlinkMessage
}
Frontend is a mock front-end.
func ConnectFrontend ¶
func ConnectFrontend(ctx context.Context, ids *ttnpb.GatewayIdentifiers, server io.Server) (*Frontend, error)
ConnectFrontend connects a new mock front-end to the given server. The gateway time starts at Unix epoch.
func (*Frontend) DutyCycleStyle ¶ added in v3.22.1
func (*Frontend) DutyCycleStyle() scheduling.DutyCycleStyle
func (*Frontend) SupportsDownlinkClaim ¶
type Server ¶
type Server interface {
io.Server
HasDownlinkClaim(context.Context, *ttnpb.GatewayIdentifiers) bool
RegisterGateway(ctx context.Context, ids *ttnpb.GatewayIdentifiers, gateway *ttnpb.Gateway)
GetConnection(ctx context.Context, ids *ttnpb.GatewayIdentifiers) *io.Connection
Connections() <-chan *io.Connection
}
Server represents a testing io.Server.
Click to show internal directories.
Click to hide internal directories.