records

package
v0.0.0-...-cf45389 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	ID           uuid.UUID
	Hash         string
	Filename     string
	DocumentDate time.Time
	Size         uint64
}

func (*File) String

func (f *File) String() string

type FileItem

type FileItem struct {
	File  *File
	Error error
}

type FileIterator

type FileIterator interface {
	Files() <-chan *FileItem
	Close() error
}

type FileMetadata

type FileMetadata struct {
	ID       uuid.UUID
	Hash     string
	FileSize uint64
}

type FileMode

type FileMode int
const (
	FILE_MODE_UNKNOWN FileMode = 0
	FILE_MODE_READ    FileMode = 1
	FILE_MODE_WRITE   FileMode = 2
)

type OpenFile

type OpenFile interface {
	io.ReadWriteSeeker
	io.Closer

	Mode() FileMode

	HandleID() string
	Flush() error

	WrittenHash() string
	WrittenSize() uint64
}

type Tag

type Tag struct {
	ID       uuid.UUID
	Name     string
	Category *TagCategory
	System   bool
}

type TagCategory

type TagCategory struct {
	ID   uuid.UUID
	Name string
}

type TagItem

type TagItem struct {
	Tag   *Tag
	Error error
}

type TagIterator

type TagIterator interface {
	Tags() <-chan *TagItem
	Close() error
}

Jump to

Keyboard shortcuts

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