impression

package
v5.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImpressionRecorder

type ImpressionRecorder interface {
	SynchronizeImpressions(bulkSize int64) error
	FlushImpressions(bulkSize int64) error
}

ImpressionRecorder interface

func NewRecorderRedis

func NewRecorderRedis(impsInMemoryStorage storage.ImpressionStorageConsumer, impsRedisStorage storage.ImpressionStorageProducer, logger logging.LoggerInterface) ImpressionRecorder

NewRecorderRedis creates new impressionsCount synchronizer for log impressionsCount in redis

func NewRecorderSingle

func NewRecorderSingle(
	impressionStorage storage.ImpressionStorageConsumer,
	impressionRecorder service.ImpressionsRecorder,
	logger logging.LoggerInterface,
	metadata dtos.Metadata,
	impressionsMode string,
	runtimeTelemetry storage.TelemetryRuntimeProducer,
) ImpressionRecorder

NewRecorderSingle creates new impression synchronizer for posting impressions

type RecorderRedis

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

func (*RecorderRedis) FlushImpressions

func (i *RecorderRedis) FlushImpressions(bulkSize int64) error

FlushImpressions flushes impressions

func (*RecorderRedis) SynchronizeImpressions

func (i *RecorderRedis) SynchronizeImpressions(bulkSize int64) error

SynchronizeImpressions syncs impressions

type RecorderSingle

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

RecorderSingle struct for impression sync

func (*RecorderSingle) FlushImpressions

func (i *RecorderSingle) FlushImpressions(bulkSize int64) error

FlushImpressions flushes impressions

func (*RecorderSingle) SynchronizeImpressions

func (i *RecorderSingle) SynchronizeImpressions(bulkSize int64) error

SynchronizeImpressions syncs impressions

Jump to

Keyboard shortcuts

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