Documentation ¶
Index ¶
- func CallHomeStruct[T any](remote *models.Instance, method, endpoint string, body any) (T, error)
- type ProxyFileService
- func (pfs *ProxyFileService) AddTask(f *fileTree.WeblensFileImpl, t *task.Task) error
- func (pfs *ProxyFileService) CreateFile(parent *fileTree.WeblensFileImpl, filename string) (*fileTree.WeblensFileImpl, error)
- func (pfs *ProxyFileService) CreateFolder(parent *fileTree.WeblensFileImpl, foldername string, caster models.FileCaster) (*fileTree.WeblensFileImpl, error)
- func (pfs *ProxyFileService) DeleteCacheFile(file fileTree.WeblensFile) error
- func (pfs *ProxyFileService) GetFile(id fileTree.FileId) (*fileTree.WeblensFileImpl, error)
- func (pfs *ProxyFileService) GetFileOwner(file *fileTree.WeblensFileImpl) *models.User
- func (pfs *ProxyFileService) GetFileSafe(id fileTree.FileId, accessor *models.User, share *models.FileShare) (*fileTree.WeblensFileImpl, error)
- func (pfs *ProxyFileService) GetFiles(ids []fileTree.FileId) ([]*fileTree.WeblensFileImpl, error)
- func (pfs *ProxyFileService) GetMediaCacheByFilename(filename string) (*fileTree.WeblensFileImpl, error)
- func (pfs *ProxyFileService) GetMediaJournal() fileTree.Journal
- func (pfs *ProxyFileService) GetMediaRoot() *fileTree.WeblensFileImpl
- func (pfs *ProxyFileService) GetTasks(f *fileTree.WeblensFileImpl) []*task.Task
- func (pfs *ProxyFileService) GetZip(id fileTree.FileId) (*fileTree.WeblensFileImpl, error)
- func (pfs *ProxyFileService) ImportFile(f *fileTree.WeblensFileImpl) error
- func (pfs *ProxyFileService) IsFileInTrash(file *fileTree.WeblensFileImpl) bool
- func (pfs *ProxyFileService) MoveFiles(files []*fileTree.WeblensFileImpl, destFolder *fileTree.WeblensFileImpl, ...) error
- func (pfs *ProxyFileService) MoveFilesToTrash(file []*fileTree.WeblensFileImpl, mover *models.User, share *models.FileShare, ...) error
- func (pfs *ProxyFileService) NewCacheFile(media *models.Media, quality models.MediaQuality, pageNum int) (*fileTree.WeblensFileImpl, error)
- func (pfs *ProxyFileService) NewZip(zipName string, owner *models.User) (*fileTree.WeblensFileImpl, error)
- func (pfs *ProxyFileService) PathToFile(searchPath string) (*fileTree.WeblensFileImpl, error)
- func (pfs *ProxyFileService) PermanentlyDeleteFiles(files []*fileTree.WeblensFileImpl, caster models.FileCaster) error
- func (pfs *ProxyFileService) ReadFile(f *fileTree.WeblensFileImpl) (io.ReadCloser, error)
- func (pfs *ProxyFileService) RemoveTask(f *fileTree.WeblensFileImpl, t *task.Task) error
- func (pfs *ProxyFileService) RenameFile(file *fileTree.WeblensFileImpl, newName string, caster models.FileCaster) error
- func (pfs *ProxyFileService) ResizeDown(file *fileTree.WeblensFileImpl, caster models.FileCaster) error
- func (pfs *ProxyFileService) ResizeUp(file *fileTree.WeblensFileImpl, caster models.FileCaster) error
- func (pfs *ProxyFileService) ReturnFilesFromTrash(files []*fileTree.WeblensFileImpl, caster models.FileCaster) error
- type ProxyJournalService
- func (pjs *ProxyJournalService) Add(lifetime *fileTree.Lifetime) error
- func (pjs *ProxyJournalService) Del(id fileTree.FileId) error
- func (pjs *ProxyJournalService) EventWorker()
- func (pjs *ProxyJournalService) FileWatcher()
- func (pjs *ProxyJournalService) Get(id fileTree.FileId) *fileTree.Lifetime
- func (pjs *ProxyJournalService) GetActionsByPath(filepath fileTree.WeblensFilepath) ([]*fileTree.FileAction, error)
- func (pjs *ProxyJournalService) GetActiveLifetimes() []*fileTree.Lifetime
- func (pjs *ProxyJournalService) GetAllLifetimes() []*fileTree.Lifetime
- func (pjs *ProxyJournalService) GetLatestAction() (*fileTree.FileAction, error)
- func (pjs *ProxyJournalService) GetLifetimesSince(date time.Time) ([]*fileTree.Lifetime, error)
- func (pjs *ProxyJournalService) GetPastFolderChildren(folder *fileTree.WeblensFileImpl, time time.Time) ([]*fileTree.WeblensFileImpl, error)
- func (pjs *ProxyJournalService) LogEvent(fe *fileTree.FileEvent)
- func (pjs *ProxyJournalService) NewEvent() *fileTree.FileEvent
- func (pjs *ProxyJournalService) SetFileTree(ft *fileTree.FileTreeImpl)
- func (pjs *ProxyJournalService) WatchFolder(f *fileTree.WeblensFileImpl) error
- type ProxyMediaService
- func (pms *ProxyMediaService) Add(media *models.Media) error
- func (pms *ProxyMediaService) AdjustMediaDates(anchor *models.Media, newTime time.Time, extraMedias []*models.Media) error
- func (pms *ProxyMediaService) Del(id models.ContentId) error
- func (pms *ProxyMediaService) FetchCacheImg(m *models.Media, quality models.MediaQuality, pageNum int) ([]byte, error)
- func (pms *ProxyMediaService) Get(id models.ContentId) *models.Media
- func (pms *ProxyMediaService) GetAll() []*models.Media
- func (pms *ProxyMediaService) GetFilteredMedia(requester *models.User, sort string, sortDirection int, ...) ([]*models.Media, error)
- func (pms *ProxyMediaService) GetMediaType(m *models.Media) models.MediaType
- func (pms *ProxyMediaService) GetMediaTypes() models.MediaTypeService
- func (pms *ProxyMediaService) GetProminentColors(media *models.Media) (prom []string, err error)
- func (pms *ProxyMediaService) HideMedia(m *models.Media, hidden bool) error
- func (pms *ProxyMediaService) IsCached(m *models.Media) bool
- func (pms *ProxyMediaService) IsFileDisplayable(file *fileTree.WeblensFileImpl) bool
- func (pms *ProxyMediaService) LoadMediaFromFile(m *models.Media, file *fileTree.WeblensFileImpl) error
- func (pms *ProxyMediaService) NukeCache() error
- func (pms *ProxyMediaService) RecursiveGetMedia(folders ...*fileTree.WeblensFileImpl) []models.ContentId
- func (pms *ProxyMediaService) RemoveFileFromMedia(media *models.Media, fileId fileTree.FileId) error
- func (pms *ProxyMediaService) SetMediaLiked(mediaId models.ContentId, liked bool, username models.Username) error
- func (pms *ProxyMediaService) Size() int
- func (pms *ProxyMediaService) StreamCacheVideo(m *models.Media, startByte, endByte int) ([]byte, error)
- func (pms *ProxyMediaService) StreamVideo(m *models.Media, u *models.User, share *models.FileShare) (*models.VideoStreamer, error)
- type ProxyUserService
- func (pus *ProxyUserService) ActivateUser(user *models.User) error
- func (pus *ProxyUserService) Add(user *models.User) error
- func (pus *ProxyUserService) Del(id models.Username) error
- func (pus *ProxyUserService) GenerateToken(user *models.User) (string, error)
- func (pus *ProxyUserService) Get(id models.Username) *models.User
- func (pus *ProxyUserService) GetAll() (iter.Seq[*models.User], error)
- func (pus *ProxyUserService) GetPublicUser() *models.User
- func (pus *ProxyUserService) GetRootUser() *models.User
- func (pus *ProxyUserService) Init() error
- func (pus *ProxyUserService) SearchByUsername(searchString string) (iter.Seq[*models.User], error)
- func (pus *ProxyUserService) SetUserAdmin(user *models.User, b bool) error
- func (pus *ProxyUserService) Size() int
- func (pus *ProxyUserService) UpdateUserPassword(username models.Username, oldPassword, newPassword string, allowEmptyOld bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProxyFileService ¶
func (*ProxyFileService) AddTask ¶
func (pfs *ProxyFileService) AddTask(f *fileTree.WeblensFileImpl, t *task.Task) error
func (*ProxyFileService) CreateFile ¶
func (pfs *ProxyFileService) CreateFile(parent *fileTree.WeblensFileImpl, filename string) ( *fileTree.WeblensFileImpl, error, )
func (*ProxyFileService) CreateFolder ¶
func (pfs *ProxyFileService) CreateFolder( parent *fileTree.WeblensFileImpl, foldername string, caster models.FileCaster, ) (*fileTree.WeblensFileImpl, error)
func (*ProxyFileService) DeleteCacheFile ¶
func (pfs *ProxyFileService) DeleteCacheFile(file fileTree.WeblensFile) error
func (*ProxyFileService) GetFile ¶
func (pfs *ProxyFileService) GetFile(id fileTree.FileId) (*fileTree.WeblensFileImpl, error)
func (*ProxyFileService) GetFileOwner ¶
func (pfs *ProxyFileService) GetFileOwner(file *fileTree.WeblensFileImpl) *models.User
func (*ProxyFileService) GetFileSafe ¶
func (pfs *ProxyFileService) GetFileSafe( id fileTree.FileId, accessor *models.User, share *models.FileShare, ) (*fileTree.WeblensFileImpl, error)
func (*ProxyFileService) GetFiles ¶
func (pfs *ProxyFileService) GetFiles(ids []fileTree.FileId) ([]*fileTree.WeblensFileImpl, error)
func (*ProxyFileService) GetMediaCacheByFilename ¶
func (pfs *ProxyFileService) GetMediaCacheByFilename(filename string) (*fileTree.WeblensFileImpl, error)
func (*ProxyFileService) GetMediaJournal ¶
func (pfs *ProxyFileService) GetMediaJournal() fileTree.Journal
func (*ProxyFileService) GetMediaRoot ¶
func (pfs *ProxyFileService) GetMediaRoot() *fileTree.WeblensFileImpl
func (*ProxyFileService) GetTasks ¶
func (pfs *ProxyFileService) GetTasks(f *fileTree.WeblensFileImpl) []*task.Task
func (*ProxyFileService) GetZip ¶
func (pfs *ProxyFileService) GetZip(id fileTree.FileId) (*fileTree.WeblensFileImpl, error)
func (*ProxyFileService) ImportFile ¶
func (pfs *ProxyFileService) ImportFile(f *fileTree.WeblensFileImpl) error
func (*ProxyFileService) IsFileInTrash ¶
func (pfs *ProxyFileService) IsFileInTrash(file *fileTree.WeblensFileImpl) bool
func (*ProxyFileService) MoveFiles ¶
func (pfs *ProxyFileService) MoveFiles( files []*fileTree.WeblensFileImpl, destFolder *fileTree.WeblensFileImpl, caster models.FileCaster, ) error
func (*ProxyFileService) MoveFilesToTrash ¶
func (pfs *ProxyFileService) MoveFilesToTrash( file []*fileTree.WeblensFileImpl, mover *models.User, share *models.FileShare, caster models.FileCaster, ) error
func (*ProxyFileService) NewCacheFile ¶
func (pfs *ProxyFileService) NewCacheFile( media *models.Media, quality models.MediaQuality, pageNum int, ) (*fileTree.WeblensFileImpl, error)
func (*ProxyFileService) NewZip ¶
func (pfs *ProxyFileService) NewZip(zipName string, owner *models.User) (*fileTree.WeblensFileImpl, error)
func (*ProxyFileService) PathToFile ¶
func (pfs *ProxyFileService) PathToFile( searchPath string, ) (*fileTree.WeblensFileImpl, error)
func (*ProxyFileService) PermanentlyDeleteFiles ¶
func (pfs *ProxyFileService) PermanentlyDeleteFiles(files []*fileTree.WeblensFileImpl, caster models.FileCaster) error
func (*ProxyFileService) ReadFile ¶
func (pfs *ProxyFileService) ReadFile(f *fileTree.WeblensFileImpl) (io.ReadCloser, error)
func (*ProxyFileService) RemoveTask ¶
func (pfs *ProxyFileService) RemoveTask(f *fileTree.WeblensFileImpl, t *task.Task) error
func (*ProxyFileService) RenameFile ¶
func (pfs *ProxyFileService) RenameFile( file *fileTree.WeblensFileImpl, newName string, caster models.FileCaster, ) error
func (*ProxyFileService) ResizeDown ¶
func (pfs *ProxyFileService) ResizeDown(file *fileTree.WeblensFileImpl, caster models.FileCaster) error
func (*ProxyFileService) ResizeUp ¶
func (pfs *ProxyFileService) ResizeUp(file *fileTree.WeblensFileImpl, caster models.FileCaster) error
func (*ProxyFileService) ReturnFilesFromTrash ¶
func (pfs *ProxyFileService) ReturnFilesFromTrash(files []*fileTree.WeblensFileImpl, caster models.FileCaster) error
type ProxyJournalService ¶
func (*ProxyJournalService) Add ¶
func (pjs *ProxyJournalService) Add(lifetime *fileTree.Lifetime) error
func (*ProxyJournalService) EventWorker ¶
func (pjs *ProxyJournalService) EventWorker()
func (*ProxyJournalService) FileWatcher ¶
func (pjs *ProxyJournalService) FileWatcher()
func (*ProxyJournalService) Get ¶
func (pjs *ProxyJournalService) Get(id fileTree.FileId) *fileTree.Lifetime
func (*ProxyJournalService) GetActionsByPath ¶
func (pjs *ProxyJournalService) GetActionsByPath(filepath fileTree.WeblensFilepath) ([]*fileTree.FileAction, error)
func (*ProxyJournalService) GetActiveLifetimes ¶
func (pjs *ProxyJournalService) GetActiveLifetimes() []*fileTree.Lifetime
func (*ProxyJournalService) GetAllLifetimes ¶
func (pjs *ProxyJournalService) GetAllLifetimes() []*fileTree.Lifetime
func (*ProxyJournalService) GetLatestAction ¶
func (pjs *ProxyJournalService) GetLatestAction() (*fileTree.FileAction, error)
func (*ProxyJournalService) GetLifetimesSince ¶
func (*ProxyJournalService) GetPastFolderChildren ¶
func (pjs *ProxyJournalService) GetPastFolderChildren(folder *fileTree.WeblensFileImpl, time time.Time) ( []*fileTree.WeblensFileImpl, error, )
func (*ProxyJournalService) LogEvent ¶
func (pjs *ProxyJournalService) LogEvent(fe *fileTree.FileEvent)
func (*ProxyJournalService) NewEvent ¶
func (pjs *ProxyJournalService) NewEvent() *fileTree.FileEvent
func (*ProxyJournalService) SetFileTree ¶
func (pjs *ProxyJournalService) SetFileTree(ft *fileTree.FileTreeImpl)
func (*ProxyJournalService) WatchFolder ¶
func (pjs *ProxyJournalService) WatchFolder(f *fileTree.WeblensFileImpl) error
type ProxyMediaService ¶
func (*ProxyMediaService) AdjustMediaDates ¶
func (*ProxyMediaService) FetchCacheImg ¶
func (pms *ProxyMediaService) FetchCacheImg(m *models.Media, quality models.MediaQuality, pageNum int) ([]byte, error)
func (*ProxyMediaService) Get ¶
func (pms *ProxyMediaService) Get(id models.ContentId) *models.Media
func (*ProxyMediaService) GetAll ¶
func (pms *ProxyMediaService) GetAll() []*models.Media
func (*ProxyMediaService) GetFilteredMedia ¶
func (*ProxyMediaService) GetMediaType ¶
func (pms *ProxyMediaService) GetMediaType(m *models.Media) models.MediaType
func (*ProxyMediaService) GetMediaTypes ¶
func (pms *ProxyMediaService) GetMediaTypes() models.MediaTypeService
func (*ProxyMediaService) GetProminentColors ¶
func (pms *ProxyMediaService) GetProminentColors(media *models.Media) (prom []string, err error)
func (*ProxyMediaService) HideMedia ¶
func (pms *ProxyMediaService) HideMedia(m *models.Media, hidden bool) error
func (*ProxyMediaService) IsFileDisplayable ¶
func (pms *ProxyMediaService) IsFileDisplayable(file *fileTree.WeblensFileImpl) bool
func (*ProxyMediaService) LoadMediaFromFile ¶
func (pms *ProxyMediaService) LoadMediaFromFile(m *models.Media, file *fileTree.WeblensFileImpl) error
func (*ProxyMediaService) NukeCache ¶
func (pms *ProxyMediaService) NukeCache() error
func (*ProxyMediaService) RecursiveGetMedia ¶
func (pms *ProxyMediaService) RecursiveGetMedia(folders ...*fileTree.WeblensFileImpl) []models.ContentId
func (*ProxyMediaService) RemoveFileFromMedia ¶
func (*ProxyMediaService) SetMediaLiked ¶
func (*ProxyMediaService) Size ¶
func (pms *ProxyMediaService) Size() int
func (*ProxyMediaService) StreamCacheVideo ¶
func (*ProxyMediaService) StreamVideo ¶
func (pms *ProxyMediaService) StreamVideo(m *models.Media, u *models.User, share *models.FileShare) ( *models.VideoStreamer, error, )
type ProxyUserService ¶
func (*ProxyUserService) ActivateUser ¶
func (pus *ProxyUserService) ActivateUser(user *models.User) error
func (*ProxyUserService) GenerateToken ¶
func (pus *ProxyUserService) GenerateToken(user *models.User) (string, error)
func (*ProxyUserService) GetPublicUser ¶
func (pus *ProxyUserService) GetPublicUser() *models.User
func (*ProxyUserService) GetRootUser ¶
func (pus *ProxyUserService) GetRootUser() *models.User
func (*ProxyUserService) Init ¶
func (pus *ProxyUserService) Init() error
func (*ProxyUserService) SearchByUsername ¶
func (*ProxyUserService) SetUserAdmin ¶
func (pus *ProxyUserService) SetUserAdmin(user *models.User, b bool) error
func (*ProxyUserService) Size ¶
func (pus *ProxyUserService) Size() int
func (*ProxyUserService) UpdateUserPassword ¶
Click to show internal directories.
Click to hide internal directories.