Documentation ¶
Index ¶
- Variables
- type Database
- func (m Database) CreateAdmin(username, hashpass string) error
- func (m Database) CreateFileInDB(file, md5, endp string, verified, nsfw bool) error
- func (m Database) DeleteFile(filename string) error
- func (m Database) GetAdminHash(username string) (string, error)
- func (m Database) GetFiles(endpoint string, nsfw bool, notIN []string, limit int) ([]string, error)
- func (m Database) GetFilesAdmin(endp, query string, verified, nsfw bool) ([]string, error)
- func (m Database) VerifyFile(filename string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorMD5Exists = errors.New("file hash already exists") ErrorFileNameExists = errors.New("filename already exists") )
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database : database type
func (Database) CreateAdmin ¶
func (Database) CreateFileInDB ¶
func (Database) DeleteFile ¶
func (Database) GetFilesAdmin ¶
GetFilesAdmin : get files for specified endpoint admin
func (Database) VerifyFile ¶
Click to show internal directories.
Click to hide internal directories.