Documentation ¶
Index ¶
- type Store
- func (s *Store) AddToTransfert(_ context.Context, ids []types.MetricID) error
- func (s *Store) Append(_ context.Context, points []types.MetricData) ([]int, error)
- func (s *Store) GetAllKnownMetrics(_ context.Context) (map[types.MetricID]time.Time, error)
- func (s *Store) GetSetFlushDeadline(_ context.Context, deadlines map[types.MetricID]time.Time) (map[types.MetricID]time.Time, error)
- func (s *Store) GetSetPointsAndOffset(_ context.Context, points []types.MetricData, offsets []int) ([]types.MetricData, error)
- func (s *Store) GetTransfert(_ context.Context, count int) (map[types.MetricID]time.Time, error)
- func (s *Store) MarkToExpire(_ context.Context, ids []types.MetricID, ttl time.Duration) error
- func (s *Store) ReadPointsAndOffset(_ context.Context, ids []types.MetricID) ([]types.MetricData, []int, error)
- func (s *Store) Run(ctx context.Context)
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 ¶
AddToTransfert implement batch.TemporaryStore interface.
func (*Store) GetAllKnownMetrics ¶
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 ¶
GetTransfert implement batch.TemporaryStore interface.
func (*Store) MarkToExpire ¶
MarkToExpire implement batch.TemporaryStore interface.
Click to show internal directories.
Click to hide internal directories.