scan

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

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

Stats contain the statistics of the archive scan.

func Init

func Init() Stats

Init initializes the archive scan statistics.

func (*Stats) Summary

func (s *Stats) Summary()

Summary prints the number of archive scanned.

Example
package main

import (
	"github.com/Defacto2/df2/pkg/zipcontent/internal/scan"
)

func main() {
	s := scan.Init()
	s.Summary()
}
Output:

nothing to do
───────────────────────────────────────────────────
Total archives scanned: 0, time elapsed 0.0 seconds

Jump to

Keyboard shortcuts

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