tar

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: CC0-1.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultIndexFromBackup = false
)

Variables

This section is empty.

Functions

func DecodeAugmentedCBOR

func DecodeAugmentedCBOR[T any](input []byte, mode cbor.DecMode) (*T, error)

Types

type Config

type Config struct {
	IndexFromBackup bool   `mapstructure:"indexFromBackup"`
	Dir             string `mapstructure:"backupDir"`
	NamePrefix      string `mapstructure:"backupNamePrefix"`
	From            uint64 `mapstructure:"from"`
	To              uint64 `mapstructure:"to"`
}

func GetConfig

func GetConfig() *Config

type Indexer

type Indexer struct {
	Config *Config
	// contains filtered or unexported fields
}

func New

func New(dbh db.Handler) (*Indexer, error)

func (*Indexer) Close

func (i *Indexer) Close()

func (*Indexer) Start

func (i *Indexer) Start()

Jump to

Keyboard shortcuts

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