hubLogRepo

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToDeviceLog

func ToDeviceLog(productID string, db map[string]any) *deviceLog.Hub

Types

type HubLogRepo

type HubLogRepo struct {
	// contains filtered or unexported fields
}

func NewHubLogRepo

func NewHubLogRepo(dataSource conf.TSDB) *HubLogRepo

func (*HubLogRepo) DeleteDevice

func (h *HubLogRepo) DeleteDevice(ctx context.Context, productID string, deviceName string) error

func (*HubLogRepo) DeleteProduct

func (h *HubLogRepo) DeleteProduct(ctx context.Context, productID string) error

func (*HubLogRepo) GetCountLog

func (h *HubLogRepo) GetCountLog(ctx context.Context, filter deviceLog.HubFilter, page def.PageInfo2) (int64, error)

func (*HubLogRepo) GetDeviceLog

func (h *HubLogRepo) GetDeviceLog(ctx context.Context, filter deviceLog.HubFilter, page def.PageInfo2) (
	[]*deviceLog.Hub, error)

func (*HubLogRepo) GetLogStableName

func (h *HubLogRepo) GetLogStableName() string

func (*HubLogRepo) GetLogTableName

func (h *HubLogRepo) GetLogTableName(productID, deviceName string) string

func (*HubLogRepo) InitDevice

func (h *HubLogRepo) InitDevice(ctx context.Context, device devices.Info) error

func (*HubLogRepo) InitProduct

func (h *HubLogRepo) InitProduct(ctx context.Context, productID string) (err error)

func (*HubLogRepo) Insert

func (h *HubLogRepo) Insert(ctx context.Context, data *deviceLog.Hub) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL