Documentation
¶
Index ¶
- type FileCollaboratorStore
- func (s *FileCollaboratorStore) CreateFileCollaborator(claims *auth.Claims, fileCollaborator *models.FileCollaborator) (*models.FileCollaborator, error)
- func (s *FileCollaboratorStore) DeleteFileCollaborator(claims *auth.Claims, fileID, collaboratorID string) (*models.FileCollaborator, error)
- func (s *FileCollaboratorStore) GetFileCollaborators(after, before *string, first, last *int, fileID string, username *string, ...) (*models.FileCollaboratorConnection, error)
- type FileStore
- func (s *FileStore) CreateFile(file *models.File) (*models.File, error)
- func (s *FileStore) DeleteFile(file *models.File) (*models.File, error)
- func (s *FileStore) GetAllFiles(claims *auth.Claims, after, before *string, first, last *int, name *string, ...) (*models.FileConnection, error)
- func (s *FileStore) GetFile(claims *auth.Claims, permission models.FilePermission, query interface{}, ...) (*models.File, error)
- func (s *FileStore) UpdateFile(file *models.File) (*models.File, error)
- type FileTagStore
- type Store
- type TagStore
- func (s *TagStore) CreateTagsOrAppendFileTags(claims *auth.Claims, tags []*models.Tag) ([]*models.Tag, error)
- func (s *TagStore) GetAllTags(after, before *string, first, last *int, name *string) (*models.TagConnection, error)
- func (s *TagStore) GetTag(query interface{}, args ...interface{}) (*models.Tag, error)
- type UserStore
- func (s *UserStore) CreateUser(user *models.User) (*models.User, error)
- func (s *UserStore) DeleteUser(query interface{}, args ...interface{}) (*models.User, error)
- func (s *UserStore) GetAllUsers(after, before *string, first, last *int, username *string) (*models.UserConnection, error)
- func (s *UserStore) GetUser(query interface{}, args ...interface{}) (*models.User, error)
- func (s *UserStore) UpdateUser(user *models.User) (*models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileCollaboratorStore ¶
type FileCollaboratorStore struct {
// contains filtered or unexported fields
}
func NewFileCollaboratorStore ¶
func NewFileCollaboratorStore(db *gorm.DB) *FileCollaboratorStore
func (*FileCollaboratorStore) CreateFileCollaborator ¶
func (s *FileCollaboratorStore) CreateFileCollaborator(claims *auth.Claims, fileCollaborator *models.FileCollaborator) (*models.FileCollaborator, error)
func (*FileCollaboratorStore) DeleteFileCollaborator ¶
func (s *FileCollaboratorStore) DeleteFileCollaborator(claims *auth.Claims, fileID, collaboratorID string) (*models.FileCollaborator, error)
func (*FileCollaboratorStore) GetFileCollaborators ¶
func (s *FileCollaboratorStore) GetFileCollaborators(after, before *string, first, last *int, fileID string, username *string, permission models.FilePermission) (*models.FileCollaboratorConnection, error)
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
func NewFileStore ¶
func (*FileStore) CreateFile ¶
func (*FileStore) DeleteFile ¶
func (*FileStore) GetAllFiles ¶
type FileTagStore ¶
type FileTagStore struct {
// contains filtered or unexported fields
}
func NewFileTagStore ¶
func NewFileTagStore(db *gorm.DB) *FileTagStore
func (*FileTagStore) DeleteFileTags ¶
func (s *FileTagStore) DeleteFileTags(claims *auth.Claims, fileTagsInput models.FileTagsInput) ([]*models.FileTag, error)
func (*FileTagStore) GetFileTags ¶
func (s *FileTagStore) GetFileTags(after, before *string, first, last *int, fileID string, name *string) (*models.FileTagConnection, error)
type Store ¶
type Store struct { User *UserStore File *FileStore FileTag *FileTagStore FileCollaborator *FileCollaboratorStore Tag *TagStore }
type TagStore ¶
type TagStore struct {
// contains filtered or unexported fields
}
func NewTagStore ¶
func (*TagStore) CreateTagsOrAppendFileTags ¶
func (*TagStore) GetAllTags ¶
type UserStore ¶
type UserStore struct {
// contains filtered or unexported fields
}
func NewUserStore ¶
func (*UserStore) CreateUser ¶
func (*UserStore) DeleteUser ¶
func (*UserStore) GetAllUsers ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.