largesegment

package
v6.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (

	// LargeSegmentDefinitionUpdate received when a large segment definition is updated
	LargeSegmentNewDefinition = "LS_NEW_DEFINITION"

	// LargeSegmentEmpty received when a large segment has no definition
	LargeSegmentEmpty = "LS_EMPTY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Updater

type Updater interface {
	SynchronizeLargeSegment(name string, till *int64) (*int64, error)
	SynchronizeLargeSegmentUpdate(lsRFDResponseDTO *dtos.LargeSegmentRFDResponseDTO) (*int64, error)
	SynchronizeLargeSegments() (map[string]*int64, error)
	IsCached(name string) bool
}

Updater interface

type UpdaterImpl

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

UpdaterImpl struct for segment sync

func NewLargeSegmentUpdater

func NewLargeSegmentUpdater(
	splitStorage storage.SplitStorageConsumer,
	largeSegmentStorage storage.LargeSegmentsStorage,
	largeSegmentFetcher service.LargeSegmentFetcher,
	logger logging.LoggerInterface,
	runtimeTelemetry storage.TelemetryRuntimeProducer,
	hcMonitor hc.MonitorProducerInterface,
) *UpdaterImpl

NewLargeSegmentUpdater creates new large segment synchronizer for processing larrge segment updates

func (*UpdaterImpl) IsCached

func (s *UpdaterImpl) IsCached(name string) bool

func (*UpdaterImpl) SynchronizeLargeSegment

func (u *UpdaterImpl) SynchronizeLargeSegment(name string, till *int64) (*int64, error)

func (*UpdaterImpl) SynchronizeLargeSegmentUpdate

func (u *UpdaterImpl) SynchronizeLargeSegmentUpdate(lsRFDResponseDTO *dtos.LargeSegmentRFDResponseDTO) (*int64, error)

func (*UpdaterImpl) SynchronizeLargeSegments

func (u *UpdaterImpl) SynchronizeLargeSegments() (map[string]*int64, error)

Jump to

Keyboard shortcuts

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