sdkLogRepo

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToDeviceSDKLog

func ToDeviceSDKLog(productID string, db map[string]any) *deviceLog.SDK

Types

type SDKLogRepo

type SDKLogRepo struct {
	stores.SDKLogStore
	// contains filtered or unexported fields
}

func NewSDKLogRepo

func NewSDKLogRepo(dataSource conf.TSDB) *SDKLogRepo

func (SDKLogRepo) DeleteDevice

func (d SDKLogRepo) DeleteDevice(ctx context.Context, productID string, deviceName string) error

func (SDKLogRepo) DeleteProduct

func (d SDKLogRepo) DeleteProduct(ctx context.Context, productID string) error

func (SDKLogRepo) GetCountLog

func (d SDKLogRepo) GetCountLog(ctx context.Context, filter deviceLog.SDKFilter, page def.PageInfo2) (int64, error)

func (SDKLogRepo) GetDeviceSDKLog

func (d SDKLogRepo) GetDeviceSDKLog(ctx context.Context,
	filter deviceLog.SDKFilter, page def.PageInfo2) ([]*deviceLog.SDK, error)

func (SDKLogRepo) InitDevice

func (d SDKLogRepo) InitDevice(ctx context.Context, device devices.Info) error

func (SDKLogRepo) InitProduct

func (d SDKLogRepo) InitProduct(ctx context.Context, productID string) error

func (SDKLogRepo) Insert

func (d SDKLogRepo) Insert(ctx context.Context, data *deviceLog.SDK) error

Jump to

Keyboard shortcuts

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