Exemplo n.º 1
0
func NewFolderStatisticsReference(ldb *db.Instance, folder string) *FolderStatisticsReference {
	prefix := string(db.KeyTypeFolderStatistic) + folder
	return &FolderStatisticsReference{
		ns:     db.NewNamespacedKV(ldb, prefix),
		folder: folder,
	}
}
Exemplo n.º 2
0
func NewDeviceStatisticsReference(ldb *db.Instance, device string) *DeviceStatisticsReference {
	prefix := string(db.KeyTypeDeviceStatistic) + device
	return &DeviceStatisticsReference{
		ns:     db.NewNamespacedKV(ldb, prefix),
		device: device,
	}
}