abnormalLogRepo

package
v1.2.20 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAbnormalLogRepo

func NewAbnormalLogRepo(dataSource conf.TSDB) deviceLog.AbnormalRepo

Types

type Abnormal

type Abnormal struct {
	*deviceLog.Abnormal
}

func (*Abnormal) TableName

func (m *Abnormal) TableName() string

type AbnormalLogRepo

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

func (*AbnormalLogRepo) DeleteDevice

func (s *AbnormalLogRepo) DeleteDevice(ctx context.Context, productID string, deviceName string) error

func (*AbnormalLogRepo) DeleteProduct

func (s *AbnormalLogRepo) DeleteProduct(ctx context.Context, productID string) error

func (*AbnormalLogRepo) GetCountLog

func (s *AbnormalLogRepo) GetCountLog(ctx context.Context, filter deviceLog.AbnormalFilter, page def.PageInfo2) (int64, error)

func (*AbnormalLogRepo) GetDeviceLog

func (s *AbnormalLogRepo) GetDeviceLog(ctx context.Context, filter deviceLog.AbnormalFilter, page def.PageInfo2) (
	[]*deviceLog.Abnormal, error)

func (*AbnormalLogRepo) InitDevice

func (s *AbnormalLogRepo) InitDevice(ctx context.Context, device devices.Info) error

func (*AbnormalLogRepo) InitProduct

func (s *AbnormalLogRepo) InitProduct(ctx context.Context, productID string) (err error)

func (*AbnormalLogRepo) Insert

func (s *AbnormalLogRepo) Insert(ctx context.Context, data *deviceLog.Abnormal) error

func (*AbnormalLogRepo) UpdateDevice added in v1.2.20

func (s *AbnormalLogRepo) UpdateDevice(ctx context.Context, devices []*devices.Core, affiliation devices.Affiliation) error

func (*AbnormalLogRepo) UpdateDevices added in v1.2.20

func (s *AbnormalLogRepo) UpdateDevices(ctx context.Context, devices []*devices.Info) error

func (*AbnormalLogRepo) VersionUpdate added in v1.2.20

func (s *AbnormalLogRepo) VersionUpdate(ctx context.Context, version string) error

Jump to

Keyboard shortcuts

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