temporarystore

package
v0.0.0-...-2a93a25 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New(reg prometheus.Registerer, logger zerolog.Logger) *Store

New creates a new Store object.

func (*Store) AddToTransfert

func (s *Store) AddToTransfert(_ context.Context, ids []types.MetricID) error

AddToTransfert implement batch.TemporaryStore interface.

func (*Store) Append

func (s *Store) Append(_ context.Context, points []types.MetricData) ([]int, error)

Append implement batch.TemporaryStore interface.

func (*Store) GetAllKnownMetrics

func (s *Store) GetAllKnownMetrics(_ context.Context) (map[types.MetricID]time.Time, error)

GetAllKnownMetrics implement batch.TemporaryStore interface.

func (*Store) GetSetFlushDeadline

func (s *Store) GetSetFlushDeadline(
	_ context.Context,
	deadlines map[types.MetricID]time.Time,
) (map[types.MetricID]time.Time, error)

GetSetFlushDeadline implement batch.TemporaryStore interface.

func (*Store) GetSetPointsAndOffset

func (s *Store) GetSetPointsAndOffset(
	_ context.Context,
	points []types.MetricData,
	offsets []int,
) ([]types.MetricData, error)

GetSetPointsAndOffset implement batch.TemporaryStore interface.

func (*Store) GetTransfert

func (s *Store) GetTransfert(_ context.Context, count int) (map[types.MetricID]time.Time, error)

GetTransfert implement batch.TemporaryStore interface.

func (*Store) MarkToExpire

func (s *Store) MarkToExpire(_ context.Context, ids []types.MetricID, ttl time.Duration) error

MarkToExpire implement batch.TemporaryStore interface.

func (*Store) ReadPointsAndOffset

func (s *Store) ReadPointsAndOffset(_ context.Context, ids []types.MetricID) ([]types.MetricData, []int, error)

ReadPointsAndOffset implement batch.TemporaryStore interface.

func (*Store) Run

func (s *Store) Run(ctx context.Context)

Run starts all Store services.

Jump to

Keyboard shortcuts

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