proof

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: 7 Imported by: 0

Documentation

Overview

Package proof handles files that have the section tagged as releaseproof.

Index

Constants

This section is empty.

Variables

View Source
var ErrPointer = errors.New("pointer value cannot be nil")

Functions

func Select added in v1.6.0

func Select(id string) string

func Total

func Total(s *record.Proof, request Request) (string, error)

Total returns the sum of the records.

Types

type Request

type Request struct {
	Overwrite   bool   // Overwrite any existing proof assets such as images.
	All         bool   // All parses every proofs, not just the new uploads.
	HideMissing bool   // HideMissing ignore proofs that are missing UUID download files.
	ByID        string // ByID is the ID used by a proof, either a uuid or id string.
}

Request records classified with the "proof" filetype.

func (Request) Queries

func (request Request) Queries(db *sql.DB, w io.Writer, cfg conf.Config) error

Queries parses all proofs.

func (*Request) Query

func (request *Request) Query(db *sql.DB, w io.Writer, cfg conf.Config, id string) error

Query parses a single proof with the record id or uuid.

func (Request) Skip

func (request Request) Skip(w io.Writer, values []sql.RawBytes) (bool, error)

Skip uses argument flags to check if a record is to be ignored.

Directories

Path Synopsis
internal
record
Package record handles the proof database record.
Package record handles the proof database record.

Jump to

Keyboard shortcuts

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