recent

package
v1.11.11 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package recent is a work-in-progress, JSON generator to display the most recent files on the file. It is intended to replace https://defacto2.net/welcome/recentfiles.

Index

Constants

This section is empty.

Variables

View Source
var ErrJSON = errors.New("data fails json validation")

Functions

func List

func List(db *sql.DB, w io.Writer, limit uint, compress bool) error

List recent files as a JSON document.

Types

type Files added in v1.11.0

type Files struct {
	Cols [3]string `json:"COLUMNS"`
	Data []data    `json:"DATA"`
}

Files data for a JSON document.

type Thumb added in v1.11.0

type Thumb struct {
	UUID  string `json:"uuid"`
	URLID string `json:"urlid"`
	Title string `json:"title"`
	// contains filtered or unexported fields
}

Thumb metadata for a JSON document.

func (*Thumb) Scan added in v1.11.0

func (f *Thumb) Scan(values []sql.RawBytes)

Scan the thumbnail for usable JSON metadata.

Jump to

Keyboard shortcuts

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