Documentation ¶
Index ¶
- Constants
- type Commands
- type Database
- func (self *Database) Close()
- func (self *Database) CommitLastTransaction() error
- func (self *Database) DeleteEntryLabelPair(id int64, label_id int) error
- func (self *Database) DeleteEntryWithoutCommit(id int64) error
- func (self *Database) DeleteFileWithoutCommit(id int64) error
- func (self *Database) DeleteLabel(id int) error
- func (self *Database) DeletePlatform(id int) error
- func (self *Database) GetFile(id int64) (name string, entry_id int64, file_type int, size int64, md5 string, ...)
- func (self *Database) GetLabelNumEntries(id int) (int64, error)
- func (self *Database) GetNumEntries() (int64, error)
- func (self *Database) GetNumFiles() (int64, error)
- func (self *Database) GetPlatformNumEntries(id int) (int64, error)
- func (self *Database) LoadEntries(entries *Entries) error
- func (self *Database) LoadFilesEntry(id int64, e *Entry) error
- func (self *Database) LoadLabels(labels *Labels) error
- func (self *Database) LoadLabelsEntry(id int64, e *Entry) error
- func (self *Database) LoadPlatforms(plats *Platforms) error
- func (self *Database) RegisterEntryLabelPair(id int64, label_id int) error
- func (self *Database) RegisterEntryWithoutCommit(name string, platform_id int) error
- func (self *Database) RegisterFileWithoutCommit(name string, entry_id int64, file_type int, size int64, md5 string, ...) error
- func (self *Database) RegisterLabel(name string, r, g, b uint8) error
- func (self *Database) RegisterPlatform(short_name string, name string, r, g, b uint8) error
- func (self *Database) RollbackLastTransaction() error
- func (self *Database) SetQuery(query *Query)
- func (self *Database) UpdateEntryCover(id int64, cover_id int64) error
- func (self *Database) UpdateEntryNameWithoutCommit(id int64, name string) error
- func (self *Database) UpdateFileNameWithoutCommit(id int64, name string) error
- func (self *Database) UpdateLabel(id int, name string, r, g, b uint8) error
- func (self *Database) UpdatePlatform(id int, name string, r, g, b uint8) error
- type Dirs
- func (self *Dirs) GetCachedImageName(max_wh int, id string) (string, error)
- func (self *Dirs) GetCommandsConfName() (string, error)
- func (self *Dirs) GetDatabaseName() (string, error)
- func (self *Dirs) GetEntryFolder(platform string, name string) (string, error)
- func (self *Dirs) GetFileNameEntries(platform string, entry string, name string) (string, error)
- func (self *Dirs) GetFileNameFiles(file_type string, name string) (string, error)
- func (self *Dirs) GetFileNameTemp(file_type string, name string) (string, error)
- type Entries
- func (self *Entries) Add(name string, platform_id int) error
- func (self *Entries) AddFileEntry(id int64, path string, name string, file_type int, ...) error
- func (self *Entries) AddLabelEntry(id int64, label_id int) error
- func (self *Entries) Filter(query *Query)
- func (self *Entries) Get(id int64) *Entry
- func (self *Entries) GetFile(id int64) *File
- func (self *Entries) GetIDs() []int64
- func (self *Entries) GetLabelIDs() []int
- func (self *Entries) LoadFiles(id int64) error
- func (self *Entries) LoadLabels(id int64) error
- func (self *Entries) Remove(id int64) error
- func (self *Entries) RemoveFileEntry(id int64, file_id int64) error
- func (self *Entries) RemoveLabelEntry(id int64, label_id int) error
- func (self *Entries) SetCoverEntry(id int64, file_id int64) error
- func (self *Entries) UpdateEntryName(id int64, name string) error
- func (self *Entries) UpdateFileNameEntry(id int64, file_id int64, name string) error
- type Entry
- func (self *Entry) AddFile(path string, name string, file_type int, create_pb func() view.ProgressBar) error
- func (self *Entry) AddLabel(id int) error
- func (self *Entry) GetCover(max_wh int) image.Image
- func (self *Entry) GetFileIDs() []int64
- func (self *Entry) GetID() int64
- func (self *Entry) GetImageFileIDs() []int64
- func (self *Entry) GetLabelIDs() []int
- func (self *Entry) GetName() string
- func (self *Entry) GetPlatformID() int
- func (self *Entry) GetUnusedLabelIDs() []int
- func (self *Entry) RemoveFile(id int64) error
- func (self *Entry) RemoveLabel(id int) error
- func (self *Entry) SetCoverFileID(id int64) error
- func (self *Entry) UpdateFileName(id int64, name string) error
- func (self *Entry) UpdateName(name string) error
- type File
- func (self *File) GetEntryID() int64
- func (self *File) GetImage(max_wh int) image.Image
- func (self *File) GetMetadata() []view.StringPair
- func (self *File) GetName() string
- func (self *File) GetPath() string
- func (self *File) GetTypeID() int
- func (self *File) IsImage() bool
- func (self *File) Run() error
- type Files
- type Label
- type Labels
- type MetadataValue
- type Model
- func (self *Model) AddEntry(name string, platform_id int) error
- func (self *Model) AddLabel(name string, c color.Color) error
- func (self *Model) AddPlatform(short_name string, name string, c color.Color) error
- func (self *Model) Close()
- func (self *Model) FilterEntries(query string)
- func (self *Model) GetEntry(id int64) view.Entry
- func (self *Model) GetFile(id int64) view.File
- func (self *Model) GetFileTypeCommand(id int) string
- func (self *Model) GetFileTypeIDs() []int
- func (self *Model) GetFileTypeName(id int) string
- func (self *Model) GetLabel(id int) view.Label
- func (self *Model) GetLabelIDs() []int
- func (self *Model) GetPlatform(id int) view.Platform
- func (self *Model) GetPlatformIDs() []int
- func (self *Model) GetStats() view.Stats
- func (self *Model) RemoveEntry(id int64) error
- func (self *Model) RemoveLabel(id int) error
- func (self *Model) RemovePlatform(id int) error
- func (self *Model) RootEntries() []int64
- func (self *Model) SetFileTypeCommand(id int, command string)
- type Platform
- type Platforms
- func (self *Platforms) Add(short_name string, name string, c color.Color) error
- func (self *Platforms) GetIDs() []int
- func (self *Platforms) GetNumEntriesPlatform(id int) int64
- func (self *Platforms) GetPlatform(id int) *Platform
- func (self *Platforms) Remove(id int) error
- func (self *Platforms) UpdatePlatform(id int, name string, r, g, b uint8) error
- type Query
- type QueryEntry
- type QueryOr
- type Stats
Constants ¶
View Source
const ( QUERY_TYPE_NAME_ENTRY = 0 QUERY_TYPE_LABEL = 1 QUERY_TYPE_PLATFORM = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commands ¶
type Commands struct {
// contains filtered or unexported fields
}
func NewCommands ¶
func (*Commands) GetCommand ¶
Cadena buida indica que no hi ha
func (*Commands) SetCommand ¶
Una cadena buida indica que no hi ha commandament
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func (*Database) CommitLastTransaction ¶
func (*Database) DeleteEntryLabelPair ¶
func (*Database) DeleteEntryWithoutCommit ¶
func (*Database) DeleteFileWithoutCommit ¶
func (*Database) DeleteLabel ¶
func (*Database) DeletePlatform ¶
func (*Database) GetFile ¶
func (self *Database) GetFile(id int64) ( name string, entry_id int64, file_type int, size int64, md5 string, sha1 string, json string, last_check int64, )
S'enten que ja està, no deuria fallar
func (*Database) GetLabelNumEntries ¶
func (*Database) GetNumEntries ¶
NOTA!!! Aquesta funció caldrà actualitzar-la quan afegim els filtres de cerca.
func (*Database) GetNumFiles ¶
NOTA!!! Aquesta funció caldrà actualitzar-la quan afegim els filtres de cerca.
func (*Database) GetPlatformNumEntries ¶
func (*Database) LoadEntries ¶
NOTA!!! En algun moment caldrà ficar la query. NOTA!!! Sols es carreguen les dades bàsiques.
func (*Database) LoadLabels ¶
func (*Database) LoadPlatforms ¶
func (*Database) RegisterEntryLabelPair ¶
func (*Database) RegisterEntryWithoutCommit ¶
func (*Database) RegisterFileWithoutCommit ¶
func (*Database) RegisterLabel ¶
func (*Database) RegisterPlatform ¶
func (*Database) RollbackLastTransaction ¶
func (*Database) UpdateEntryCover ¶
func (*Database) UpdateEntryNameWithoutCommit ¶
func (*Database) UpdateFileNameWithoutCommit ¶
func (*Database) UpdateLabel ¶
type Dirs ¶
type Dirs struct {
// contains filtered or unexported fields
}
func (*Dirs) GetCachedImageName ¶
func (*Dirs) GetCommandsConfName ¶
func (*Dirs) GetDatabaseName ¶
func (*Dirs) GetEntryFolder ¶
func (*Dirs) GetFileNameEntries ¶
func (*Dirs) GetFileNameFiles ¶
type Entries ¶
type Entries struct {
// contains filtered or unexported fields
}
func NewEntries ¶
func (*Entries) AddFileEntry ¶
func (*Entries) GetLabelIDs ¶
func (*Entries) LoadLabels ¶
func (*Entries) RemoveFileEntry ¶
func (*Entries) RemoveLabelEntry ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
func (*Entry) GetFileIDs ¶
func (*Entry) GetImageFileIDs ¶
func (*Entry) GetLabelIDs ¶
func (*Entry) GetPlatformID ¶
func (*Entry) GetUnusedLabelIDs ¶
func (*Entry) RemoveFile ¶
func (*Entry) RemoveLabel ¶
func (*Entry) SetCoverFileID ¶
func (*Entry) UpdateName ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) GetEntryID ¶
func (*File) GetMetadata ¶
func (self *File) GetMetadata() []view.StringPair
type Label ¶
type Label struct {
// contains filtered or unexported fields
}
func (*Label) GetNumEntries ¶
type Labels ¶
type Labels struct {
// contains filtered or unexported fields
}
func (*Labels) GetNumEntriesLabel ¶
type MetadataValue ¶
type MetadataValue struct {
// contains filtered or unexported fields
}
func (*MetadataValue) GetKey ¶
func (self *MetadataValue) GetKey() string
func (*MetadataValue) GetValue ¶
func (self *MetadataValue) GetValue() string
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) AddPlatform ¶
func (*Model) FilterEntries ¶
func (*Model) GetFileTypeCommand ¶
func (*Model) GetFileTypeIDs ¶
func (*Model) GetFileTypeName ¶
func (*Model) GetLabelIDs ¶
func (*Model) GetPlatformIDs ¶
func (*Model) RemoveEntry ¶
func (*Model) RemoveLabel ¶
func (*Model) RemovePlatform ¶
func (*Model) RootEntries ¶
func (*Model) SetFileTypeCommand ¶
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) GetNumEntries ¶
func (*Platform) GetShortName ¶
type Platforms ¶
type Platforms struct {
// contains filtered or unexported fields
}
func NewPlatforms ¶
func (*Platforms) GetNumEntriesPlatform ¶
func (*Platforms) GetPlatform ¶
type QueryEntry ¶
type QueryEntry struct {
// contains filtered or unexported fields
}
type QueryOr ¶
type QueryOr struct {
Queries []QueryEntry // S'ha de cumplir alguna
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.