Versions in this module Expand all Collapse all v0 v0.10.6 Oct 6, 2024 Changes in this version + func ToDeviceLog(productID string, db map[string]any) *deviceLog.Hub + type HubLogRepo struct + func NewHubLogRepo(dataSource conf.TSDB) *HubLogRepo + func (h *HubLogRepo) DeleteDevice(ctx context.Context, productID string, deviceName string) error + func (h *HubLogRepo) DeleteProduct(ctx context.Context, productID string) error + func (h *HubLogRepo) GetCountLog(ctx context.Context, filter deviceLog.HubFilter, page def.PageInfo2) (int64, error) + func (h *HubLogRepo) GetDeviceLog(ctx context.Context, filter deviceLog.HubFilter, page def.PageInfo2) ([]*deviceLog.Hub, error) + func (h *HubLogRepo) GetLogStableName() string + func (h *HubLogRepo) GetLogTableName(productID, deviceName string) string + func (h *HubLogRepo) InitDevice(ctx context.Context, device devices.Info) error + func (h *HubLogRepo) InitProduct(ctx context.Context, productID string) (err error) + func (h *HubLogRepo) Insert(ctx context.Context, data *deviceLog.Hub) error