scan

package
v1.11.13 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package scan initializes and stores statistics on a file archive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

type Stats struct {
	BasePath string          // BasePath is the path to the file downloads directory.
	Count    int             // Count the database table row index.
	Missing  int             // Missing UUID as files count.
	Total    int             // Total rows in the database table.
	Columns  []string        // Columns are column names from the database table.
	Values   *[]sql.RawBytes // Values of the database table.
	// contains filtered or unexported fields
}

Stats contain the statistics of the archive scan.

func Init

func Init(cfg conf.Config) (Stats, error)

Init initializes the archive scan statistics.

func (*Stats) Summary

func (s *Stats) Summary(w io.Writer)

Summary prints the number of archive scanned.

Jump to

Keyboard shortcuts

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