entities

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2014 License: BSD-3-Clause, GPL-3.0, 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          uint
	Directory   string
	Name        string
	Fingerprint fingerprint.Fingerprint
	ModTime     time.Time
	Size        int64
	IsDir       bool
}

func (File) Path

func (file File) Path() string

type FileTag

type FileTag struct {
	FileId  uint
	TagId   uint
	ValueId uint
}

type FileTagCount added in v0.3.0

type FileTagCount struct {
	FileId    uint
	Directory string
	Name      string
	TagCount  uint
}

type FileTags added in v0.3.0

type FileTags []*FileTag

type Files added in v0.3.0

type Files []*File

func (Files) Where added in v0.3.0

func (files Files) Where(predicate func(*File) bool) Files

type Implication added in v0.3.0

type Implication struct {
	ImplyingTag Tag
	ImpliedTag  Tag
}

type Implications added in v0.3.0

type Implications []*Implication

type Queries added in v0.3.0

type Queries []*Query

type Query added in v0.3.0

type Query struct {
	Text string
}

type Setting added in v0.4.0

type Setting struct {
	Name  string
	Value string
}

type Settings added in v0.4.0

type Settings []*Setting

type Tag

type Tag struct {
	Id   uint
	Name string
}

type TagFileCount added in v0.3.0

type TagFileCount struct {
	Id        uint
	Name      string
	FileCount uint
}

type Tags added in v0.3.0

type Tags []*Tag

func (Tags) Any added in v0.3.0

func (tags Tags) Any(predicate func(*Tag) bool) bool

func (Tags) Contains added in v0.3.0

func (tags Tags) Contains(searchTag *Tag) bool

func (Tags) ContainsName added in v0.3.0

func (tags Tags) ContainsName(name string) bool

func (Tags) Len added in v0.3.0

func (tags Tags) Len() int

func (Tags) Less added in v0.3.0

func (tags Tags) Less(i, j int) bool

func (Tags) Swap added in v0.3.0

func (tags Tags) Swap(i, j int)

type Value added in v0.4.0

type Value struct {
	Id   uint
	Name string
}

type Values added in v0.4.0

type Values []*Value

func (Values) Any added in v0.4.0

func (values Values) Any(predicate func(*Value) bool) bool

func (Values) Contains added in v0.4.0

func (values Values) Contains(searchValue *Value) bool

func (Values) ContainsName added in v0.4.0

func (values Values) ContainsName(name string) bool

func (Values) Len added in v0.4.0

func (values Values) Len() int

func (Values) Less added in v0.4.0

func (values Values) Less(i, j int) bool

func (Values) Swap added in v0.4.0

func (values Values) Swap(i, j int)

Jump to

Keyboard shortcuts

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