code: func (n *NetworkServerAPI) GetDeviceQueueItemsForDevEUI(ctx context.Context, req *ns.GetDeviceQueueItemsForDevEUIRequest) (*ns.GetDeviceQueueItemsForDevEUIResponse, error) {
  	var devEUI lorawan.EUI64
  	copy(devEUI[:], req.DevEui)
  
  	items, err := storage.GetDeviceQueueItemsForDevEUI(storage.DB(), devEUI)
  	if err != nil {
  		return nil, errToRPCError(err)
  	}
  
  	var out ns.GetDeviceQueueItemsForDevEUIResponse
  	for i := range items {
  		qi := ns.DeviceQueueItem{
  			DevAddr:    items[i].DevAddr[:],
  			DevEui:     items[i].DevEUI[:],
  			FrmPayload: items[i].FRMPayload,
  			FCnt:       items[i].FCnt,
  			FPort:      uint32(items[i].FPort),
  			Confirmed:  items[i].Confirmed,
  		}
  
  		out.Items = append(out.Items, &qi)
  	}
  
  	return &out, nil
  }
docs: // GetDeviceQueueItemsForDevEUI returns all device-queue items for the given DevEUI.