Documentation ¶
Index ¶
- func ToDeviceSDKLog(productID string, db map[string]any) *deviceLog.SDK
- type SDKLogRepo
- func (d SDKLogRepo) DeleteDevice(ctx context.Context, productID string, deviceName string) error
- func (d SDKLogRepo) DeleteProduct(ctx context.Context, productID string) error
- func (d SDKLogRepo) GetCountLog(ctx context.Context, filter deviceLog.SDKFilter, page def.PageInfo2) (int64, error)
- func (d SDKLogRepo) GetDeviceSDKLog(ctx context.Context, filter deviceLog.SDKFilter, page def.PageInfo2) ([]*deviceLog.SDK, error)
- func (d SDKLogRepo) InitDevice(ctx context.Context, device devices.Info) error
- func (d SDKLogRepo) InitProduct(ctx context.Context, productID string) error
- func (d SDKLogRepo) Insert(ctx context.Context, data *deviceLog.SDK) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (SDKLogRepo) DeleteProduct ¶
func (d SDKLogRepo) DeleteProduct(ctx context.Context, productID string) error
func (SDKLogRepo) GetCountLog ¶
func (SDKLogRepo) GetDeviceSDKLog ¶
func (SDKLogRepo) InitDevice ¶
func (SDKLogRepo) InitProduct ¶
func (d SDKLogRepo) InitProduct(ctx context.Context, productID string) error
Click to show internal directories.
Click to hide internal directories.