streaming

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package streaming provides a ResourceStore implementation that sends records directly to a remote_write endpoint instead of persisting them. Designed for the backfill job where the SQLite store is unnecessary overhead.

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(settings *config.Settings) *Store

New creates a streaming store that sends records directly to the collector endpoint configured in settings.RemoteWrite.

func (*Store) Count

func (s *Store) Count(_ context.Context) (int, error)

func (*Store) Create

func (s *Store) Create(_ context.Context, record *types.ResourceTags) error

func (*Store) Delete

func (s *Store) Delete(_ context.Context, _ string) error

func (*Store) DeleteAll

func (s *Store) DeleteAll(_ context.Context) error

func (*Store) FindAllBy

func (s *Store) FindAllBy(_ context.Context, _ ...interface{}) ([]*types.ResourceTags, error)

func (*Store) FindFirstBy

func (s *Store) FindFirstBy(_ context.Context, _ ...interface{}) (*types.ResourceTags, error)

func (*Store) Flush

func (s *Store) Flush() error

Flush sends any buffered records to the collector.

func (*Store) Get

func (s *Store) Get(_ context.Context, _ string) (*types.ResourceTags, error)

func (*Store) Tx

func (s *Store) Tx(_ context.Context, block func(context.Context) error) error

func (*Store) Update

func (s *Store) Update(ctx context.Context, record *types.ResourceTags) error

Jump to

Keyboard shortcuts

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