app

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithHasher

func WithHasher(h hasher) tixOpt

func WithMaxHashers

func WithMaxHashers(m int) tixOpt

func WithStore

func WithStore(s store) tixOpt

func WithWalker

func WithWalker(w walker) tixOpt

Types

type Item

type Item struct {
	ItemID id64.ID64         // random ID
	Path   string            // full path used to identify the file
	Name   string            // basename of the file
	Size   int64             // in bytes
	MTime  time.Time         // modification time
	CTime  time.Time         // inode change time (only on unix)
	Hash   map[string]string // any number of hashes, with 1 per algorithm
	Tags   tag.List          // ordered list of tags assiged to this item
}

func NewItem

func NewItem() *Item

func (*Item) String

func (i *Item) String() string

type Tix

type Tix struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...tixOpt) *Tix

func (*Tix) Walk

func (t *Tix) Walk(root string)

Directories

Path Synopsis
Package tag provides a representation for short, descriptive words or phrases, used to describe the contents of a file.
Package tag provides a representation for short, descriptive words or phrases, used to describe the contents of a file.

Jump to

Keyboard shortcuts

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