collection

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type CollectionConsumer

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

func NewCollectionConsumer

func NewCollectionConsumer(s *CollectionService) *CollectionConsumer

func (*CollectionConsumer) Cleanup

func (*CollectionConsumer) ConsumeClaim

func (*CollectionConsumer) Setup

type CollectionRcache added in v0.3.3

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

func NewCollectionRcache added in v0.3.3

func NewCollectionRcache(rcache *rcache.Rcache, client *dbUtils) *CollectionRcache

func (*CollectionRcache) GetDeviceLastReport added in v0.3.3

func (rc *CollectionRcache) GetDeviceLastReport(ctx context.Context, id uint64) (*model.CollectionRecord, error)

func (*CollectionRcache) GetDeviceLastReportFromCache added in v0.4.3

func (rc *CollectionRcache) GetDeviceLastReportFromCache(ctx context.Context, id uint64) (*model.CollectionRecord, error)

func (*CollectionRcache) GetLastPredictQuality added in v0.4.3

func (rc *CollectionRcache) GetLastPredictQuality(ctx context.Context, deviceID uint64) (*model.PredictAndGuess, error)

func (*CollectionRcache) GetLastPredictQualityFromCache added in v0.4.3

func (rc *CollectionRcache) GetLastPredictQualityFromCache(ctx context.Context, deviceID uint64) (*model.PredictAndGuess, error)

func (*CollectionRcache) UpdateDeviceLastReport added in v0.3.3

func (rc *CollectionRcache) UpdateDeviceLastReport(ctx context.Context, id uint64, lastlocal *model.CollectionRecord) error

func (*CollectionRcache) UpdateLastPredictQuality added in v0.4.3

func (rc *CollectionRcache) UpdateLastPredictQuality(ctx context.Context, deviceID uint64, data *model.PredictAndGuess) error

type CollectionService

type CollectionService struct {
	collectionApi.UnimplementedCollectionServer
	// contains filtered or unexported fields
}

func (*CollectionService) CreateCollectionRecord

func (*CollectionService) GetDeviceLastReport added in v0.3.3

func (*CollectionService) GetDeviceStreamEvent added in v0.2.4

func (*CollectionService) GetDeviceStreamReport added in v0.2.4

func (*CollectionService) GetLatestIdWithinRange added in v0.4.2

func (*CollectionService) GetLatestRecordsWithinRange added in v0.4.2

func (*CollectionService) GetPredictQuality added in v0.3.3

func (*CollectionService) GetStreamLatestIdWithinRange added in v0.4.2

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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