Documentation ¶
Index ¶
- type ConfigStore
- type ShareStore
- func (s ShareStore) Delete(hash string) error
- func (s ShareStore) Get(hash string) (*fb.ShareLink, error)
- func (s ShareStore) GetByPath(hash string) ([]*fb.ShareLink, error)
- func (s ShareStore) GetPermanent(path string) (*fb.ShareLink, error)
- func (s ShareStore) Gets() ([]*fb.ShareLink, error)
- func (s ShareStore) Save(l *fb.ShareLink) error
- type UsersStore
- func (u UsersStore) Delete(id int) error
- func (u UsersStore) Get(id int, builder fm.FSBuilder) (*fm.User, error)
- func (u UsersStore) GetByUsername(username string, builder fm.FSBuilder) (*fm.User, error)
- func (u UsersStore) Gets(builder fm.FSBuilder) ([]*fm.User, error)
- func (u UsersStore) Save(us *fm.User) error
- func (u UsersStore) Update(us *fm.User, fields ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigStore ¶
ConfigStore is a configuration store.
func (ConfigStore) Get ¶
func (c ConfigStore) Get(name string, to interface{}) error
Get gets a configuration from the database to an interface.
func (ConfigStore) Save ¶
func (c ConfigStore) Save(name string, from interface{}) error
Save saves a configuration from an interface to the database.
type ShareStore ¶
type ShareStore struct {
}ShareStore is a shareable links store.
func (ShareStore) Delete ¶
func (s ShareStore) Delete(hash string) error
Delete deletes a Share Link from the database.
func (ShareStore) Get ¶
func (s ShareStore) Get(hash string) (*fb.ShareLink, error)
Get gets a Share Link from an hash.
func (ShareStore) GetByPath ¶
func (s ShareStore) GetByPath(hash string) ([]*fb.ShareLink, error)
GetByPath gets all the links for a specific path.
func (ShareStore) GetPermanent ¶
func (s ShareStore) GetPermanent(path string) (*fb.ShareLink, error)
GetPermanent gets the permanent link from a path.
type UsersStore ¶
UsersStore is a users store.
func (UsersStore) Delete ¶
func (u UsersStore) Delete(id int) error
Delete deletes a user from the database.
func (UsersStore) GetByUsername ¶
GetByUsername gets a user with a certain username from the database.
Click to show internal directories.
Click to hide internal directories.