Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collections ¶
func NewCollections ¶
func NewCollections(p *Pool, db CollectionsDatabase) (*Collections, error)
func (*Collections) Add ¶
func (cols *Collections) Add(coll *Collection)
func (*Collections) Clear ¶
func (cols *Collections) Clear()
func (*Collections) Get ¶
func (cols *Collections) Get(name string) (*Collection, error)
type CollectionsDatabase ¶
type CollectionsDatabase interface {
CollectionsLoadAll(colls *Collections) error
}
type Item ¶
type Item struct {
ItemID int64
CollectionID int64
Signature string
Urn string
Type string
SubType string
ObjectType string
ParentID int64
Mimetype string
Error string
SHA512 string
Metadata string
CreationDate time.Time
LastModified time.Time
Disbled bool
Public bool
PublicActions []string
Status string
}
type ItemsDatabase ¶
type Pool ¶
type Pool struct {
Storages *Storages
Collections *Collections
Items *Items
}
func NewPool ¶
func NewPool( collectionsDatabase CollectionsDatabase, storagesDatabase StoragesDatabase, itemsDatabase ItemsDatabase, itemsCacheSize int, itemsCacheExpiration time.Duration, ) (*Pool, error)
type Storages ¶
func NewStorages ¶
func NewStorages(p *Pool, db StoragesDatabase) (*Storages, error)
type StoragesDatabase ¶
Click to show internal directories.
Click to hide internal directories.