storemanager

package
v0.0.0-...-81473b2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	StoreRoot          string
	Freq               time.Duration
	TimeLimit          time.Duration
	SizeLimitBytes     int
	BadgerDiscardRatio float64
	BadgerVLogGCFreq   time.Duration
	DeletionBatchSize  int
	GCThreshold        float64
	EnableDeleteKeys   bool
}

type SleepWithCancel

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

func NewSleepWithCancel

func NewSleepWithCancel() *SleepWithCancel

func (*SleepWithCancel) Cancel

func (s *SleepWithCancel) Cancel()

func (*SleepWithCancel) Sleep

func (s *SleepWithCancel) Sleep(after time.Duration)

type StoreManager

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

func NewStoreManager

func NewStoreManager(tables typed.Tables, config *Config, fs *afero.Afero) *StoreManager

func (*StoreManager) Shutdown

func (sm *StoreManager) Shutdown()

func (*StoreManager) Start

func (sm *StoreManager) Start()

Jump to

Keyboard shortcuts

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